From fe3c5e4e8e3c46d57cb49c2dd6c4c2dc814a797b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 23 Oct 2013 21:57:28 +0200 Subject: DecoderThread: remove unused function deconst_plugin() --- src/DecoderThread.cxx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/DecoderThread.cxx b/src/DecoderThread.cxx index 556ab327e..4e2c4418a 100644 --- a/src/DecoderThread.cxx +++ b/src/DecoderThread.cxx @@ -170,15 +170,6 @@ decoder_file_decode(const DecoderPlugin &plugin, 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(plugin); -} - gcc_pure static bool decoder_check_plugin_mime(const DecoderPlugin &plugin, const input_stream &is) -- cgit v1.2.3