diff --git a/src/lang/deprecated.js b/src/lang/deprecated.js index 52011e17c5..32c8ba80f7 100644 --- a/src/lang/deprecated.js +++ b/src/lang/deprecated.js @@ -127,15 +127,3 @@ export class DroptargetEntity extends DropTarget { super(x, y, settings.width, settings.height); } } - -// deprecated event -event.on(event.WEBGL_ONCONTEXT_LOST, function(...args) { - warning("event.WEBGL_ONCONTEXT_LOST", "event.ONCONTEXT_LOST", "10.7.0"); - event.emit(event.ONCONTEXT_LOST, ...args); -}); - -// deprecated event -event.on(event.WEBGL_ONCONTEXT_RESTORED, function(...args) { - warning("event.WEBGL_ONCONTEXT_RESTORED", "event.ONCONTEXT_RESTORED", "10.7.0"); - event.emit(event.ONCONTEXT_RESTORED, ...args); -}); diff --git a/src/system/event.js b/src/system/event.js index e790c9e474..2704989cb7 100644 --- a/src/system/event.js +++ b/src/system/event.js @@ -423,34 +423,6 @@ export const WINDOW_ONSCROLL = "globalThis.onscroll"; */ export const VIEWPORT_ONCHANGE = "viewport.onchange"; -/** - * Event for when WebGL context is lost
- * Data passed : {me.WebGLRenderer} the current webgl renderer instance - * @public - * @constant - * @type {string} - * @name WEBGL_ONCONTEXT_LOST - * @memberof event - * @deprecated - * @see event.ONCONTEXT_LOST - */ -export const WEBGL_ONCONTEXT_LOST = "renderer.webglcontextlost"; - - -/** - * Event for when WebGL context is restored
- * Data passed : {me.WebGLRenderer} the current webgl renderer instance - * @public - * @constant - * @type {string} - * @name WEBGL_ONCONTEXT_RESTORED - * @memberof event - * @deprecated - * @see event.ONCONTEXT_RESTORED - */ -export const WEBGL_ONCONTEXT_RESTORED = "renderer.webglcontextrestored"; - - /** * Event for when the current context is lost
* Data passed : {me.Renderer} the current renderer instance