Skip to content
Permalink
Browse files

Allow unused

  • Loading branch information...
Manishearth committed Mar 26, 2019
1 parent 240b5e7 commit 2e628055786cd5d1d17cf739aea689f16e7a0d27
Showing with 2 additions and 0 deletions.
  1. +2 −0 components/script/dom/xrspace.rs
@@ -40,6 +40,7 @@ impl XRSpace {

impl XRSpace {
/// Gets viewer pose represented by this space
#[allow(unused)]
pub fn get_viewer_pose(&self, base_pose: &WebVRFrameData) -> Transform3D<f64> {
if let Some(reference) = self.downcast::<XRReferenceSpace>() {
reference.get_viewer_pose(base_pose)
@@ -51,6 +52,7 @@ impl XRSpace {
/// Gets pose represented by this space
///
/// Does not apply originOffset, use get_viewer_pose instead if you need it
#[allow(unused)]
pub fn get_pose(&self, base_pose: &WebVRFrameData) -> Transform3D<f64> {
if let Some(reference) = self.downcast::<XRReferenceSpace>() {
reference.get_pose(base_pose)

0 comments on commit 2e62805

Please sign in to comment.
You can’t perform that action at this time.