output/Multiple: remove unused method Add()

This commit is contained in:
Max Kellermann 2021-10-22 20:21:32 +02:00
parent f0d66bf6a6
commit 9af73dad93
2 changed files with 0 additions and 16 deletions

View File

@ -129,19 +129,6 @@ MultipleOutputs::FindByName(const char *name) noexcept
return nullptr;
}
void
MultipleOutputs::Add(std::unique_ptr<FilteredAudioOutput> output,
bool enable) noexcept
{
// TODO: this operation needs to be protected with a mutex
outputs.push_back(std::make_unique<AudioOutputControl>(std::move(output),
client));
outputs.back()->LockSetEnabled(enable);
client.ApplyEnabled();
}
void
MultipleOutputs::AddMoveFrom(AudioOutputControl &&src,
bool enable) noexcept

View File

@ -125,9 +125,6 @@ public:
return FindByName(name) != nullptr;
}
void Add(std::unique_ptr<FilteredAudioOutput> output,
bool enable) noexcept;
void AddMoveFrom(AudioOutputControl &&src,
bool enable) noexcept;