filter/{chain,convert}: remove unused FilterPlugin instances
These are not in filter_plugins[] and have dedicated constructors anyway.
This commit is contained in:
parent
03cf6591c0
commit
b335ac4156
|
@ -31,8 +31,6 @@
|
|||
struct FilterPlugin;
|
||||
|
||||
extern const FilterPlugin null_filter_plugin;
|
||||
extern const FilterPlugin chain_filter_plugin;
|
||||
extern const FilterPlugin convert_filter_plugin;
|
||||
extern const FilterPlugin route_filter_plugin;
|
||||
extern const FilterPlugin normalize_filter_plugin;
|
||||
extern const FilterPlugin volume_filter_plugin;
|
||||
|
|
|
@ -19,9 +19,7 @@
|
|||
|
||||
#include "config.h"
|
||||
#include "ChainFilterPlugin.hxx"
|
||||
#include "filter/FilterPlugin.hxx"
|
||||
#include "filter/FilterInternal.hxx"
|
||||
#include "filter/FilterRegistry.hxx"
|
||||
#include "AudioFormat.hxx"
|
||||
#include "util/ConstBuffer.hxx"
|
||||
#include "util/StringBuffer.hxx"
|
||||
|
@ -94,12 +92,6 @@ public:
|
|||
Filter *Open(AudioFormat &af) override;
|
||||
};
|
||||
|
||||
static PreparedFilter *
|
||||
chain_filter_init(gcc_unused const ConfigBlock &block)
|
||||
{
|
||||
return new PreparedChainFilter();
|
||||
}
|
||||
|
||||
Filter *
|
||||
PreparedChainFilter::Child::Open(const AudioFormat &prev_audio_format)
|
||||
{
|
||||
|
@ -151,11 +143,6 @@ ChainFilter::FilterPCM(ConstBuffer<void> src)
|
|||
return src;
|
||||
}
|
||||
|
||||
const FilterPlugin chain_filter_plugin = {
|
||||
"chain",
|
||||
chain_filter_init,
|
||||
};
|
||||
|
||||
PreparedFilter *
|
||||
filter_chain_new(void)
|
||||
{
|
||||
|
|
|
@ -19,9 +19,7 @@
|
|||
|
||||
#include "config.h"
|
||||
#include "ConvertFilterPlugin.hxx"
|
||||
#include "filter/FilterPlugin.hxx"
|
||||
#include "filter/FilterInternal.hxx"
|
||||
#include "filter/FilterRegistry.hxx"
|
||||
#include "pcm/PcmConvert.hxx"
|
||||
#include "util/Manual.hxx"
|
||||
#include "util/ConstBuffer.hxx"
|
||||
|
@ -64,12 +62,6 @@ public:
|
|||
Filter *Open(AudioFormat &af) override;
|
||||
};
|
||||
|
||||
static PreparedFilter *
|
||||
convert_filter_init(gcc_unused const ConfigBlock &block)
|
||||
{
|
||||
return new PreparedConvertFilter();
|
||||
}
|
||||
|
||||
void
|
||||
ConvertFilter::Set(const AudioFormat &_out_audio_format)
|
||||
{
|
||||
|
@ -127,11 +119,6 @@ ConvertFilter::FilterPCM(ConstBuffer<void> src)
|
|||
return state.Convert(src);
|
||||
}
|
||||
|
||||
const FilterPlugin convert_filter_plugin = {
|
||||
"convert",
|
||||
convert_filter_init,
|
||||
};
|
||||
|
||||
PreparedFilter *
|
||||
convert_filter_prepare() noexcept
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue