DecoderThread: remove unused function deconst_plugin()

This commit is contained in:
Max Kellermann 2013-10-23 21:57:28 +02:00
parent d110131ad6
commit fe3c5e4e8e

View File

@ -170,15 +170,6 @@ decoder_file_decode(const DecoderPlugin &plugin,
return decoder.dc.state != DecoderState::START; return decoder.dc.state != DecoderState::START;
} }
/**
* Hack to allow tracking const decoder plugins in a GSList.
*/
static inline gpointer
deconst_plugin(const struct DecoderPlugin *plugin)
{
return const_cast<struct DecoderPlugin *>(plugin);
}
gcc_pure gcc_pure
static bool static bool
decoder_check_plugin_mime(const DecoderPlugin &plugin, const input_stream &is) decoder_check_plugin_mime(const DecoderPlugin &plugin, const input_stream &is)