Commit ee6b27a0 authored by Sandro Knauß's avatar Sandro Knauß

Delete unused methods

parent 4734f4d9
......@@ -173,26 +173,7 @@ SubtypeRegistry::const_iterator BodyPartFormatterBaseFactory::createForIterator(
return subtype_it;
}
const Interface::BodyPartFormatter *BodyPartFormatterBaseFactory::createFor(const char *type, const char *subtype) const
{
const auto it = createForIterator(type, subtype);
if ((*it).second) {
return (*it).second;
}
return 0;
}
const Interface::BodyPartFormatter *BodyPartFormatterBaseFactory::createFor(const QString &type, const QString &subtype) const
{
return createFor(type.toLatin1(), subtype.toLatin1());
}
const Interface::BodyPartFormatter *BodyPartFormatterBaseFactory::createFor(const QByteArray &type, const QByteArray &subtype) const
{
return createFor(type.constData(), subtype.constData());
}
void BodyPartFormatterBaseFactory::loadPlugins()
{
qCDebug(MIMETREEPARSER_LOG) << "plugin loading is not enabled in libotp";
qCDebug(MIMETREEPARSER_LOG) << "plugin loading is not enabled in libmimetreeparser";
}
......@@ -70,10 +70,6 @@ public:
SubtypeRegistry::const_iterator createForIterator(const char *type, const char *subtype) const;
const SubtypeRegistry &subtypeRegistry(const char *type) const;
const Interface::BodyPartFormatter *createFor(const char *type, const char *subtype) const;
const Interface::BodyPartFormatter *createFor(const QString &type, const QString &subtype) const;
const Interface::BodyPartFormatter *createFor(const QByteArray &type, const QByteArray &subtype) const;
protected:
void insert(const char *type, const char *subtype, const Interface::BodyPartFormatter *formatter);
virtual void loadPlugins();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment