diff options
Diffstat (limited to 'components/script/dom/gainnode.rs')
-rw-r--r-- | components/script/dom/gainnode.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/components/script/dom/gainnode.rs b/components/script/dom/gainnode.rs index f91a2ba2591..86a957734dd 100644 --- a/components/script/dom/gainnode.rs +++ b/components/script/dom/gainnode.rs @@ -9,9 +9,7 @@ use crate::dom::bindings::codegen::Bindings::AudioNodeBinding::{ ChannelCountMode, ChannelInterpretation, }; use crate::dom::bindings::codegen::Bindings::AudioParamBinding::AutomationRate; -use crate::dom::bindings::codegen::Bindings::GainNodeBinding::{ - self, GainNodeMethods, GainOptions, -}; +use crate::dom::bindings::codegen::Bindings::GainNodeBinding::{GainNodeMethods, GainOptions}; use crate::dom::bindings::error::Fallible; use crate::dom::bindings::reflector::reflect_dom_object; use crate::dom::bindings::root::{Dom, DomRoot}; @@ -69,11 +67,7 @@ impl GainNode { options: &GainOptions, ) -> Fallible<DomRoot<GainNode>> { let node = GainNode::new_inherited(window, context, options)?; - Ok(reflect_dom_object( - Box::new(node), - window, - GainNodeBinding::Wrap, - )) + Ok(reflect_dom_object(Box::new(node), window)) } #[allow(non_snake_case)] |