From 358b6710330b8893dd598a66d84367ffaaaa63a9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 29 Dec 2013 15:53:55 +0100 Subject: DecoderList: remove unused function decoder_plugin_from_mime_type() --- src/DecoderList.cxx | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/DecoderList.cxx') diff --git a/src/DecoderList.cxx b/src/DecoderList.cxx index 834178260..dbad3dd57 100644 --- a/src/DecoderList.cxx +++ b/src/DecoderList.cxx @@ -155,28 +155,6 @@ decoder_plugin_from_suffix(const char *suffix, return nullptr; } -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) { -- cgit v1.2.3