From 6bd3a01f5fe8cebb070a9010512d7094b7e43e9a Mon Sep 17 00:00:00 2001 From: apetitco Date: Fri, 9 Jan 2026 16:42:48 +0100 Subject: [PATCH] cleaning code --- frontend/src/pages/ttt/socket.ts | 2 -- src/tic-tac-toe/src/socket.ts | 2 -- src/tic-tac-toe/src/state.ts | 10 ---------- 3 files changed, 14 deletions(-) diff --git a/frontend/src/pages/ttt/socket.ts b/frontend/src/pages/ttt/socket.ts index a1fcbad..30ab897 100644 --- a/frontend/src/pages/ttt/socket.ts +++ b/frontend/src/pages/ttt/socket.ts @@ -28,8 +28,6 @@ export interface ClientToServer { gameMove: (up: GameMove) => void; keepalive: () => void; connectedToGame: (gameId: string) => void; - // TODO: - joinQueueButton: () => void; }; export interface ServerToClient { diff --git a/src/tic-tac-toe/src/socket.ts b/src/tic-tac-toe/src/socket.ts index 9ca00ef..45ce2ea 100644 --- a/src/tic-tac-toe/src/socket.ts +++ b/src/tic-tac-toe/src/socket.ts @@ -28,8 +28,6 @@ export interface ClientToServer { gameMove: (up: GameMove) => void; keepalive: () => void; connectedToGame: (gameId: string) => void; - // TODO: - joinQueueButton: () => void; }; export interface ServerToClient { diff --git a/src/tic-tac-toe/src/state.ts b/src/tic-tac-toe/src/state.ts index e7d03b1..4e58b93 100644 --- a/src/tic-tac-toe/src/state.ts +++ b/src/tic-tac-toe/src/state.ts @@ -48,9 +48,6 @@ export class StateI { socket.on('enqueue', () => this.enqueueUser(socket)); socket.on('dequeue', () => this.dequeueUser(socket)); socket.on('debugInfo', () => this.debugSocket(socket)); - // TODO: - socket.on('joinQueueButton', () => this.joinQueueButton(socket)); - socket.on('gameMove', (e) => this.gameMove(socket, e)); socket.on('keepalive', () => this.keepAlive(socket)); if (socket) { @@ -204,13 +201,6 @@ export class StateI { game?.makeMove(socket.authUser.id, update.index); } - - // TODO: - private joinQueueButton(socket: SSocket) { - void socket; - // TODO: - this.fastify.log.info('===== JOIN QUEUE BUTTON PRESSED ====='); - } } // this value will be overriten