Implemented TagUnion::properties() and made Tag::*properties* virtual.

This allows to remove several default implementations in types using
TagUnions.
This commit is contained in:
Michael Helmling
2012-12-27 13:19:11 +01:00
parent b60b444d7b
commit fa38c805f5
15 changed files with 21 additions and 113 deletions

View File

@ -112,15 +112,6 @@ TagLib::Tag *APE::File::tag() const
return &d->tag;
}
PropertyMap APE::File::properties() const
{
if(d->hasAPE)
return d->tag.access<APE::Tag>(ApeAPEIndex, false)->properties();
if(d->hasID3v1)
return d->tag.access<ID3v1::Tag>(ApeID3v1Index, false)->properties();
return PropertyMap();
}
void APE::File::removeUnsupportedProperties(const StringList &properties)
{
if(d->hasAPE)

View File

@ -113,13 +113,6 @@ namespace TagLib {
*/
virtual TagLib::Tag *tag() const;
/*!
* Implements the unified property interface -- export function.
* If the file contains both an APE and an ID3v1 tag, only APE
* will be converted to the PropertyMap.
*/
PropertyMap properties() const;
/*!
* Removes unsupported properties. Forwards to the actual Tag's
* removeUnsupportedProperties() function.