aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/channelsplitternode.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/channelsplitternode.rs')
-rw-r--r--components/script/dom/channelsplitternode.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/components/script/dom/channelsplitternode.rs b/components/script/dom/channelsplitternode.rs
index 4ec38609bce..3efd3b2465c 100644
--- a/components/script/dom/channelsplitternode.rs
+++ b/components/script/dom/channelsplitternode.rs
@@ -7,9 +7,7 @@ use crate::dom::baseaudiocontext::BaseAudioContext;
use crate::dom::bindings::codegen::Bindings::AudioNodeBinding::{
ChannelCountMode, ChannelInterpretation,
};
-use crate::dom::bindings::codegen::Bindings::ChannelSplitterNodeBinding::{
- self, ChannelSplitterOptions,
-};
+use crate::dom::bindings::codegen::Bindings::ChannelSplitterNodeBinding::ChannelSplitterOptions;
use crate::dom::bindings::error::{Error, Fallible};
use crate::dom::bindings::reflector::reflect_dom_object;
use crate::dom::bindings::root::DomRoot;
@@ -63,11 +61,7 @@ impl ChannelSplitterNode {
options: &ChannelSplitterOptions,
) -> Fallible<DomRoot<ChannelSplitterNode>> {
let node = ChannelSplitterNode::new_inherited(window, context, options)?;
- Ok(reflect_dom_object(
- Box::new(node),
- window,
- ChannelSplitterNodeBinding::Wrap,
- ))
+ Ok(reflect_dom_object(Box::new(node), window))
}
#[allow(non_snake_case)]