From 099961b818722495296733ff6ba54c3983c428e3 Mon Sep 17 00:00:00 2001 From: gparant Date: Mon, 11 May 2020 13:19:48 +0200 Subject: [PATCH] Delete params not used --- back/src/Model/Websocket/ExtRooms.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/back/src/Model/Websocket/ExtRooms.ts b/back/src/Model/Websocket/ExtRooms.ts index bb49283d..f0eadea6 100644 --- a/back/src/Model/Websocket/ExtRooms.ts +++ b/back/src/Model/Websocket/ExtRooms.ts @@ -1,8 +1,6 @@ import {ExtRoomsInterface} from "./ExtRoomsInterface"; import socketIO = require('socket.io'); import {ExSocketInterface} from "./ExSocketInterface"; -import {MessageUserPosition} from "./MessageUserPosition"; -import {World} from "_Model/World"; export class ExtRooms implements ExtRoomsInterface{ userPositionMapByRoom: any; @@ -10,9 +8,9 @@ export class ExtRooms implements ExtRoomsInterface{ Worlds: any; [room: string]: SocketIO.Room; -} +}; -let RefreshUserPositionFunction = function(rooms : ExtRooms, Io: socketIO.Server, Worlds: Map) { +let RefreshUserPositionFunction = function(rooms : ExtRooms, Io: socketIO.Server) { let clients = Io.clients(); let socketsKey = Object.keys(Io.clients().sockets); @@ -40,8 +38,8 @@ let RefreshUserPositionFunction = function(rooms : ExtRooms, Io: socketIO.Server mapPositionUserByRoom.set(data.roomId, dataArray); } rooms.userPositionMapByRoom = Array.from(mapPositionUserByRoom); -} +}; export { RefreshUserPositionFunction -} +};