Remove legacy API

This commit is contained in:
Martchus 2018-07-11 12:24:45 +02:00
parent 8d89954cd3
commit d434c4e299
3 changed files with 0 additions and 23 deletions

View File

@ -177,7 +177,6 @@ set(META_VERSION_MINOR 0)
set(META_VERSION_PATCH 0)
set(META_PUBLIC_SHARED_LIB_DEPENDS c++utilities)
set(META_PUBLIC_STATIC_LIB_DEPENDS c++utilities_static)
set(META_PRIVATE_COMPILE_DEFINITIONS LEGACY_API)
set(META_REQUIRED_CPP_UNIT_VERSION 1.14.0)
# find c++utilities

View File

@ -114,14 +114,6 @@ const TagValue &Mp4Tag::value(const char *mean, const char *name) const
return TagValue::empty();
}
/*!
* \brief Returns the value of the field with the specified \a mean and \a name attributes.
*/
const TagValue &Mp4Tag::value(const string mean, const string name) const
{
return (this->*static_cast<const TagValue &(Mp4Tag::*)(const string &, const string &)const>(&Mp4Tag::value))(mean, name);
}
Mp4Tag::IdentifierType Mp4Tag::internallyGetFieldId(KnownField field) const
{
using namespace Mp4TagAtomIds;
@ -291,14 +283,6 @@ bool Mp4Tag::setValue(const char *mean, const char *name, const TagValue &value)
return true;
}
/*!
* \brief Assigns the given \a value to the field with the specified \a mean and \a name attributes.
*/
bool Mp4Tag::setValue(const string mean, const string name, const TagValue &value)
{
return (this->*static_cast<bool (Mp4Tag::*)(const string &, const string &, const TagValue &)>(&Mp4Tag::setValue))(mean, name, value);
}
bool Mp4Tag::hasField(KnownField field) const
{
switch (field) {

View File

@ -110,18 +110,12 @@ public:
const TagValue &value(KnownField value) const override;
using FieldMapBasedTag<Mp4Tag>::values;
std::vector<const TagValue *> values(KnownField field) const override;
#ifdef LEGACY_API
const TagValue &value(const std::string mean, const std::string name) const;
#endif
const TagValue &value(const std::string &mean, const std::string &name) const;
const TagValue &value(const char *mean, const char *name) const;
using FieldMapBasedTag<Mp4Tag>::setValue;
bool setValue(KnownField field, const TagValue &value) override;
using FieldMapBasedTag<Mp4Tag>::setValues;
bool setValues(KnownField field, const std::vector<TagValue> &values) override;
#ifdef LEGACY_API
bool setValue(const std::string mean, const std::string name, const TagValue &value);
#endif
bool setValue(const std::string &mean, const std::string &name, const TagValue &value);
bool setValue(const char *mean, const char *name, const TagValue &value);
using FieldMapBasedTag<Mp4Tag>::hasField;