aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xrlayer.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2018-12-23 15:54:33 -0800
committerManish Goregaokar <manishsmail@gmail.com>2019-01-03 23:53:50 -0800
commitc3b93a967d0cf79bb19d78fbfb4f4b0f9e99d3ae (patch)
tree01063f1c3afe0335b3e638677ef78c3c0e485935 /components/script/dom/xrlayer.rs
parentfeb2a2d3c90b2c54d7c8f8321ca049b0160d82fb (diff)
downloadservo-c3b93a967d0cf79bb19d78fbfb4f4b0f9e99d3ae.tar.gz
servo-c3b93a967d0cf79bb19d78fbfb4f4b0f9e99d3ae.zip
Silence unused warnings
Diffstat (limited to 'components/script/dom/xrlayer.rs')
-rw-r--r--components/script/dom/xrlayer.rs13
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,
- )
- }
}