Skip to content

Commit

Permalink
remove the unnecessary/unused getWidth() and getHeight() method f…
Browse files Browse the repository at this point in the history
…rom the Camera2d object

Camera2d extends base me.Rect object, which provides already all the necessary APIs
  • Loading branch information
obiot committed Dec 4, 2021
1 parent eb401ba commit 1e7def6
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/camera/camera2d.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,28 +591,6 @@ class Camera2d extends Renderable {
this._fadeIn.tween.start();
}

/**
* return the camera width
* @name getWidth
* @memberOf me.Camera2d
* @function
* @returns {Number}
*/
getWidth() {
return this.width;
}

/**
* return the camera height
* @name getHeight
* @memberOf me.Camera2d
* @function
* @returns {Number}
*/
getHeight() {
return this.height;
}

/**
* set the camera position around the specified object
* @name focusOn
Expand Down

0 comments on commit 1e7def6

Please sign in to comment.