Silence unused warnings

This commit is contained in:
Manish Goregaokar 2018-12-23 15:54:33 -08:00
parent feb2a2d3c9
commit c3b93a967d
5 changed files with 16 additions and 26 deletions

View file

@ -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,
)
}
}