From f2e37b8cff2fd8d3a288e4af3b6df528d5fbe797 Mon Sep 17 00:00:00 2001 From: PizZaKatZe Date: Mon, 20 Dec 2021 16:48:34 +0100 Subject: [PATCH] Clean up now unused function in group model --- back/src/Model/Group.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/back/src/Model/Group.ts b/back/src/Model/Group.ts index 2f8e315f..e6c6db56 100644 --- a/back/src/Model/Group.ts +++ b/back/src/Model/Group.ts @@ -106,16 +106,6 @@ export class Group implements Movable { return this.users.size <= 1; } - includes(user: User): boolean { - let found = false; - this.users.forEach((currentUser: User) => { - if (currentUser.id === user.id) { - found = true; - } - }); - return found; - } - join(user: User): void { // Broadcast on the right event this.connectCallback(user, this);