From 80fddb3c69cd5e9d9b4fe4b23ef0fd441681a69f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Wed, 10 Jun 2020 16:01:01 +0200 Subject: [PATCH] Removing dead code --- front/src/Phaser/Game/GameScene.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/front/src/Phaser/Game/GameScene.ts b/front/src/Phaser/Game/GameScene.ts index 387b7ad3..2b60fd62 100644 --- a/front/src/Phaser/Game/GameScene.ts +++ b/front/src/Phaser/Game/GameScene.ts @@ -310,15 +310,6 @@ export class GameScene extends Phaser.Scene { * @param layer */ private startUser(layer: ITiledMapLayer): PositionInterface { - if (this.initPosition !== null) { - this.startX = this.initPosition.x; - this.startY = this.initPosition.y; - return { - x: this.initPosition.x, - y: this.initPosition.y - }; - } - let tiles : any = layer.data; let possibleStartPositions : PositionInterface[] = []; tiles.forEach((objectKey : number, key: number) => {