From 0219f0abdfb5ff35a703822cce9fd8e710c8f04e Mon Sep 17 00:00:00 2001
From: Greg Fodor <gfodor@gmail.com>
Date: Thu, 10 May 2018 17:18:51 -0700
Subject: [PATCH] Remove GearVR entry code

---
 src/react-components/ui-root.js | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/src/react-components/ui-root.js b/src/react-components/ui-root.js
index 92615d8a0..3a6bf9227 100644
--- a/src/react-components/ui-root.js
+++ b/src/react-components/ui-root.js
@@ -161,8 +161,6 @@ class UIRoot extends Component {
 
     if (this.props.forcedVREntryType === "daydream") {
       this.enterDaydream();
-    } else if (this.props.forcedVREntryType === "gearvr") {
-      this.enterGearVR();
     } else if (this.props.forcedVREntryType === "vr") {
       this.enterVR();
     } else if (this.props.forcedVREntryType === "2d") {
@@ -270,25 +268,6 @@ class UIRoot extends Component {
     }
   };
 
-  enterGearVR = async () => {
-    if (this.props.availableVREntryTypes.gearvr === VR_DEVICE_AVAILABILITY.yes) {
-      await this.performDirectEntryFlow(true);
-    } else {
-      this.exit();
-
-      // Launch via Oculus Browser
-      const location = window.location;
-      const qs = queryString.parse(location.search);
-      qs.vr_entry_type = "gearvr"; // Auto-choose 'gearvr' after landing in Oculus Browser
-
-      const ovrwebUrl =
-        `ovrweb://${location.protocol || "http:"}//${location.host}` +
-        `${location.pathname || ""}?${queryString.stringify(qs)}#${location.hash || ""}`;
-
-      window.location = ovrwebUrl;
-    }
-  };
-
   enterDaydream = async () => {
     if (this.props.availableVREntryTypes.daydream == VR_DEVICE_AVAILABILITY.maybe) {
       this.exit();
-- 
GitLab