Skip to content

Commit

Permalink
remove deprecated events
Browse files Browse the repository at this point in the history
those can actually safely be removed as those are rather internal events
  • Loading branch information
obiot committed May 4, 2022
1 parent eee431b commit 8e80d31
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 40 deletions.
12 changes: 0 additions & 12 deletions src/lang/deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
28 changes: 0 additions & 28 deletions src/system/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,34 +423,6 @@ export const WINDOW_ONSCROLL = "globalThis.onscroll";
*/
export const VIEWPORT_ONCHANGE = "viewport.onchange";

/**
* Event for when WebGL context is lost <br>
* 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 <br>
* 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 <br>
* Data passed : {me.Renderer} the current renderer instance
Expand Down

0 comments on commit 8e80d31

Please sign in to comment.