Skip to content

Commit 0dd3610

Browse files
committed
Minor optimisation in TilemapLayerGL to remove unnecessary loop.
1 parent 5b6e157 commit 0dd3610

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/tilemap/TilemapLayerGL.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -617,14 +617,7 @@ Phaser.TilemapLayerGL.prototype.resolveTileset = function (tileIndex) {
617617
*/
618618
Phaser.TilemapLayerGL.prototype.resetTilesetCache = function () {
619619

620-
var tilesets = this._mc.tilesets;
621-
622-
// TODO: why not just set this._mc.tilesets = []; ??
623-
while (tilesets.length)
624-
{
625-
tilesets.pop();
626-
}
627-
620+
this._mc.tilesets = [];
628621
};
629622

630623
/**

0 commit comments

Comments
 (0)