Also removing dead class
authorDavid Négrier <d.negrier@thecodingmachine.com>
Sun, 24 May 2020 21:29:51 +0000 (23:29 +0200)
committerDavid Négrier <d.negrier@thecodingmachine.com>
Mon, 25 May 2020 20:36:44 +0000 (22:36 +0200)
front/src/Connection.ts

index 99ff7bc3e16795a44c53aa6e9282cfc7616bc4d6..fc8fa1edfd1cf827d90a9b8b38cd9ec31757c1c1 100644 (file)
@@ -87,29 +87,6 @@ export interface ListMessageUserPositionInterface {
     listUsersPosition: Array<MessageUserPosition>;
 }
 
-class ListMessageUserPosition {
-    roomId: string;
-    listUsersPosition: Array<MessageUserPosition>;
-
-    constructor(roomId: string, data: any) {
-        this.roomId = roomId;
-        this.listUsersPosition = new Array<MessageUserPosition>();
-        data.forEach((userPosition: any) => {
-            this.listUsersPosition.push(new MessageUserPosition(
-                userPosition.userId,
-                new Point(
-                    userPosition.position.x,
-                    userPosition.position.y,
-                    userPosition.position.direction,
-                    userPosition.position.moving
-                ),
-                userPosition.name,
-                userPosition.character
-            ));
-        });
-    }
-}
-
 export interface PositionInterface {
     x: number,
     y: number