Skip to content

Commit 4ecae80

Browse files
Remove deprecated AFRAME.utils.isGearVR and AFRAME.utils.isOculusGo functions (#5635)
1 parent 247e6b9 commit 4ecae80

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

‎docs/core/utils.md‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,6 @@ diff({a: 1, b: 2, c: 3}, {b: 2, c: 4})
147147
Checks if a VR headset is connected by looking for browser support of
148148
immersive-vr or immersive-ar WebXR session. Returns a `boolean`.
149149

150-
### `AFRAME.utils.device.isOculusGo ()`
151-
152-
Checks if device is Oculus Go. Returns a `boolean`.
153-
154150
### `AFRAME.utils.device.isMobile ()`
155151

156152
Checks if device is a smartphone. Returns a `boolean`.

‎src/utils/index.js‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,12 @@ export function checkHeadsetConnected () {
2727
warn('`utils.checkHeadsetConnected` has moved to `utils.device.checkHeadsetConnected`');
2828
return device.checkHeadsetConnected(arguments);
2929
}
30-
export function isGearVR () {
31-
warn('`utils.isGearVR` has been deprecated, use `utils.device.isMobileVR`');
32-
}
3330

3431
export function isIOS () {
3532
warn('`utils.isIOS` has moved to `utils.device.isIOS`');
3633
return device.isIOS(arguments);
3734
}
38-
export function isOculusGo () {
39-
warn('`utils.isOculusGo` has been deprecated, use `utils.device.isMobileVR`');
40-
}
35+
4136
export function isMobile () {
4237
warn('`utils.isMobile has moved to `utils.device.isMobile`');
4338
return device.isMobile(arguments);

0 commit comments

Comments
 (0)