Remove deprecated constructors from AudioProperties classes.

This commit is contained in:
Tsuda Kageyu 2015-08-10 01:01:09 +09:00
parent e6e11c957d
commit 400fa04b1c
9 changed files with 4 additions and 65 deletions

View File

@ -63,13 +63,6 @@ public:
// public members
////////////////////////////////////////////////////////////////////////////////
APE::AudioProperties::AudioProperties(File *, ReadStyle) :
TagLib::AudioProperties(),
d(new PropertiesPrivate())
{
debug("APE::Properties::Properties() -- This constructor is no longer used.");
}
APE::AudioProperties::AudioProperties(File *file, offset_t streamLength, ReadStyle) :
TagLib::AudioProperties(),
d(new PropertiesPrivate())

View File

@ -49,14 +49,6 @@ namespace TagLib {
class TAGLIB_EXPORT AudioProperties : public TagLib::AudioProperties
{
public:
/*!
* Create an instance of APE::Properties with the data read from the
* APE::File \a file.
*
* \deprecated
*/
AudioProperties(File *file, ReadStyle style = Average);
/*!
* Create an instance of APE::Properties with the data read from the
* APE::File \a file.

View File

@ -126,7 +126,6 @@ bool ASF::AudioProperties::isEncrypted() const
// private members
////////////////////////////////////////////////////////////////////////////////
void ASF::AudioProperties::setLengthInMilliseconds(int value)
{
d->length = value;

View File

@ -152,5 +152,5 @@ void RIFF::AIFF::File::read(bool readProperties)
d->tag = new ID3v2::Tag();
if(readProperties)
d->properties = new AudioProperties(this, AudioProperties::Average);
d->properties = new AudioProperties(this);
}

View File

@ -57,13 +57,6 @@ public:
// public members
////////////////////////////////////////////////////////////////////////////////
RIFF::AIFF::AudioProperties::AudioProperties(const ByteVector &, ReadStyle) :
TagLib::AudioProperties(),
d(new PropertiesPrivate())
{
debug("RIFF::AIFF::Properties::Properties() - This constructor is no longer used.");
}
RIFF::AIFF::AudioProperties::AudioProperties(File *file, ReadStyle) :
TagLib::AudioProperties(),
d(new PropertiesPrivate())

View File

@ -46,19 +46,11 @@ namespace TagLib {
class TAGLIB_EXPORT AudioProperties : public TagLib::AudioProperties
{
public:
/*!
* Create an instance of AIFF::AudioProperties with the data read from
* the ByteVector \a data.
*
* \deprecated
*/
AudioProperties(const ByteVector &data, ReadStyle style);
/*!
* Create an instance of AIFF::AudioProperties with the data read from
* the AIFF::File \a file.
*/
AudioProperties(File *file, ReadStyle style);
AudioProperties(File *file, ReadStyle style = Average);
/*!
* Destroys this AIFF::AudioProperties instance.

View File

@ -224,7 +224,7 @@ void RIFF::WAV::File::read(bool readProperties)
d->tag.set(InfoIndex, new RIFF::Info::Tag());
if(readProperties)
d->properties = new AudioProperties(this, AudioProperties::Average);
d->properties = new AudioProperties(this);
}
void RIFF::WAV::File::strip(TagTypes tags)

View File

@ -66,20 +66,6 @@ public:
// public members
////////////////////////////////////////////////////////////////////////////////
RIFF::WAV::AudioProperties::AudioProperties(const ByteVector &, ReadStyle) :
TagLib::AudioProperties(),
d(new PropertiesPrivate())
{
debug("RIFF::WAV::Properties::Properties() -- This constructor is no longer used.");
}
RIFF::WAV::AudioProperties::AudioProperties(const ByteVector &, uint, ReadStyle) :
TagLib::AudioProperties(),
d(new PropertiesPrivate())
{
debug("RIFF::WAV::Properties::Properties() -- This constructor is no longer used.");
}
TagLib::RIFF::WAV::AudioProperties::AudioProperties(File *file, ReadStyle) :
TagLib::AudioProperties(),
d(new PropertiesPrivate())

View File

@ -49,27 +49,11 @@ namespace TagLib {
class TAGLIB_EXPORT AudioProperties : public TagLib::AudioProperties
{
public:
/*!
* Create an instance of WAV::Properties with the data read from the
* ByteVector \a data.
*
* \deprecated
*/
AudioProperties(const ByteVector &data, ReadStyle style);
/*!
* Create an instance of WAV::Properties with the data read from the
* ByteVector \a data and the length calculated using \a streamLength.
*
* \deprecated
*/
AudioProperties(const ByteVector &data, uint streamLength, ReadStyle style);
/*!
* Create an instance of WAV::Properties with the data read from the
* WAV::File \a file.
*/
AudioProperties(File *file, ReadStyle style);
AudioProperties(File *file, ReadStyle style = Average);
/*!
* Destroys this WAV::Properties instance.