mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Silence unused warnings
This commit is contained in:
parent
feb2a2d3c9
commit
c3b93a967d
5 changed files with 16 additions and 26 deletions
|
@ -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,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue