diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2018-12-23 15:54:33 -0800 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2019-01-03 23:53:50 -0800 |
commit | c3b93a967d0cf79bb19d78fbfb4f4b0f9e99d3ae (patch) | |
tree | 01063f1c3afe0335b3e638677ef78c3c0e485935 /components/script/dom/xrlayer.rs | |
parent | feb2a2d3c90b2c54d7c8f8321ca049b0160d82fb (diff) | |
download | servo-c3b93a967d0cf79bb19d78fbfb4f4b0f9e99d3ae.tar.gz servo-c3b93a967d0cf79bb19d78fbfb4f4b0f9e99d3ae.zip |
Silence unused warnings
Diffstat (limited to 'components/script/dom/xrlayer.rs')
-rw-r--r-- | components/script/dom/xrlayer.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/components/script/dom/xrlayer.rs b/components/script/dom/xrlayer.rs index 85e00d3ad1a..d17704be28f 100644 --- a/components/script/dom/xrlayer.rs +++ b/components/script/dom/xrlayer.rs @@ -2,10 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -use crate::dom::bindings::codegen::Bindings::XRLayerBinding; -use crate::dom::bindings::reflector::{reflect_dom_object, Reflector}; -use crate::dom::bindings::root::DomRoot; -use crate::dom::globalscope::GlobalScope; +use crate::dom::bindings::reflector::Reflector; use dom_struct::dom_struct; #[dom_struct] @@ -19,12 +16,4 @@ impl XRLayer { reflector_: Reflector::new(), } } - - pub fn new(global: &GlobalScope) -> DomRoot<XRLayer> { - reflect_dom_object( - Box::new(XRLayer::new_inherited()), - global, - XRLayerBinding::Wrap, - ) - } } |