Commit 44a376c8 authored by Jeremy Roman's avatar Jeremy Roman Committed by Commit Bot

webaudio: Remove AudioNode::DisconnectWithoutException.

It has no callers and is therefore dead code.

Change-Id: Id7888a8898607ac844460bf429cc81f682b56a5f
Reviewed-on: https://chromium-review.googlesource.com/1126520Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarRaymond Toy <rtoy@chromium.org>
Commit-Queue: Jeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#573435}
parent 026cfc6c
...@@ -987,16 +987,6 @@ void AudioNode::disconnect(AudioParam* destination_param, ...@@ -987,16 +987,6 @@ void AudioNode::disconnect(AudioParam* destination_param,
} }
} }
void AudioNode::DisconnectWithoutException(unsigned output_index) {
DCHECK(IsMainThread());
BaseAudioContext::GraphAutoLocker locker(context());
// Sanity check input and output indices.
if (output_index >= Handler().NumberOfOutputs())
return;
DisconnectAllFromOutput(output_index);
}
unsigned AudioNode::numberOfInputs() const { unsigned AudioNode::numberOfInputs() const {
return Handler().NumberOfInputs(); return Handler().NumberOfInputs();
} }
......
...@@ -346,9 +346,6 @@ class MODULES_EXPORT AudioNode : public EventTargetWithInlineData { ...@@ -346,9 +346,6 @@ class MODULES_EXPORT AudioNode : public EventTargetWithInlineData {
// Called inside AudioHandler constructors. // Called inside AudioHandler constructors.
void DidAddOutput(unsigned number_of_outputs); void DidAddOutput(unsigned number_of_outputs);
// Like disconnect, but no exception is thrown if the outputIndex is invalid.
// Just do nothing in that case.
void DisconnectWithoutException(unsigned output_index);
protected: protected:
explicit AudioNode(BaseAudioContext&); explicit AudioNode(BaseAudioContext&);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment