aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-29 15:53:55 +0100
committerMax Kellermann <max@duempel.org>2013-12-29 15:53:55 +0100
commit358b6710330b8893dd598a66d84367ffaaaa63a9 (patch)
treecd895669a687a42f22a157394f423064426a89fa
parent92a4bf4441b239e44067ab4f5785fec27d651b22 (diff)
downloadmpd-358b6710330b8893dd598a66d84367ffaaaa63a9.tar.gz
mpd-358b6710330b8893dd598a66d84367ffaaaa63a9.tar.xz
mpd-358b6710330b8893dd598a66d84367ffaaaa63a9.zip
DecoderList: remove unused function decoder_plugin_from_mime_type()
Diffstat (limited to '')
-rw-r--r--src/DecoderList.cxx22
-rw-r--r--src/DecoderList.hxx3
2 files changed, 0 insertions, 25 deletions
diff --git a/src/DecoderList.cxx b/src/DecoderList.cxx
index 834178260..dbad3dd57 100644
--- a/src/DecoderList.cxx
+++ b/src/DecoderList.cxx
@@ -156,28 +156,6 @@ decoder_plugin_from_suffix(const char *suffix,
}
const struct DecoderPlugin *
-decoder_plugin_from_mime_type(const char *mimeType, unsigned int next)
-{
- static unsigned i = num_decoder_plugins;
-
- if (mimeType == nullptr)
- return nullptr;
-
- if (!next)
- i = 0;
- for (; decoder_plugins[i] != nullptr; ++i) {
- const struct DecoderPlugin *plugin = decoder_plugins[i];
- if (decoder_plugins_enabled[i] &&
- plugin->SupportsMimeType(mimeType)) {
- ++i;
- return plugin;
- }
- }
-
- return nullptr;
-}
-
-const struct DecoderPlugin *
decoder_plugin_from_name(const char *name)
{
return decoder_plugins_find([=](const DecoderPlugin &plugin){
diff --git a/src/DecoderList.hxx b/src/DecoderList.hxx
index fd4b22c63..3cfaaae7b 100644
--- a/src/DecoderList.hxx
+++ b/src/DecoderList.hxx
@@ -39,9 +39,6 @@ decoder_plugin_from_suffix(const char *suffix,
const struct DecoderPlugin *plugin);
const struct DecoderPlugin *
-decoder_plugin_from_mime_type(const char *mimeType, unsigned int next);
-
-const struct DecoderPlugin *
decoder_plugin_from_name(const char *name);
/* this is where we "load" all the "plugins" ;-) */