DecoderList: remove unused function decoder_plugin_from_mime_type()
This commit is contained in:
parent
92a4bf4441
commit
358b671033
@ -155,28 +155,6 @@ decoder_plugin_from_suffix(const char *suffix,
|
|||||||
return nullptr;
|
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 *
|
const struct DecoderPlugin *
|
||||||
decoder_plugin_from_name(const char *name)
|
decoder_plugin_from_name(const char *name)
|
||||||
{
|
{
|
||||||
|
@ -38,9 +38,6 @@ const struct DecoderPlugin *
|
|||||||
decoder_plugin_from_suffix(const char *suffix,
|
decoder_plugin_from_suffix(const char *suffix,
|
||||||
const struct DecoderPlugin *plugin);
|
const struct DecoderPlugin *plugin);
|
||||||
|
|
||||||
const struct DecoderPlugin *
|
|
||||||
decoder_plugin_from_mime_type(const char *mimeType, unsigned int next);
|
|
||||||
|
|
||||||
const struct DecoderPlugin *
|
const struct DecoderPlugin *
|
||||||
decoder_plugin_from_name(const char *name);
|
decoder_plugin_from_name(const char *name);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user