output/Finish: fold internal function into FinishDestroy()

This commit is contained in:
Max Kellermann 2017-08-07 18:15:15 +02:00
parent 33f67d418f
commit 04738636ca
2 changed files with 1 additions and 12 deletions

View File

@ -23,8 +23,6 @@
#include "mixer/MixerControl.hxx"
#include "filter/FilterInternal.hxx"
#include <assert.h>
AudioOutput::~AudioOutput()
{
if (mixer != nullptr)
@ -35,12 +33,6 @@ AudioOutput::~AudioOutput()
delete prepared_filter;
}
void
audio_output_free(AudioOutput *ao) noexcept
{
ao_plugin_finish(ao);
}
void
AudioOutput::BeginDestroy() noexcept
{
@ -51,5 +43,5 @@ AudioOutput::BeginDestroy() noexcept
void
AudioOutput::FinishDestroy() noexcept
{
audio_output_free(this);
ao_plugin_finish(this);
}

View File

@ -187,7 +187,4 @@ audio_output_new(EventLoop &event_loop,
const ConfigBlock &block,
MixerListener &mixer_listener);
void
audio_output_free(AudioOutput *ao) noexcept;
#endif