diff --git a/project/src/callbacks/MatchCallbacks.ts b/project/src/callbacks/MatchCallbacks.ts index ab580a44..b4e6f87a 100644 --- a/project/src/callbacks/MatchCallbacks.ts +++ b/project/src/callbacks/MatchCallbacks.ts @@ -162,13 +162,6 @@ export class MatchCallbacks return this.httpResponse.getBody(this.matchController.getGroupStatus(info)); } - /** Handle client/match/group/create */ - // TODO: may have been removed from client - public createGroup(url: string, info: ICreateGroupRequestData, sessionID: string): IGetBodyResponseData - { - return this.httpResponse.getBody(this.matchController.createGroup(sessionID, info)); - } - /** Handle client/match/group/delete */ // eslint-disable-next-line @typescript-eslint/no-unused-vars public deleteGroup(url: string, info: any, sessionID: string): INullResponseData diff --git a/project/src/controllers/MatchController.ts b/project/src/controllers/MatchController.ts index e742ce09..2928bbec 100644 --- a/project/src/controllers/MatchController.ts +++ b/project/src/controllers/MatchController.ts @@ -71,12 +71,6 @@ export class MatchController return this.matchConfig.enabled; } - /** Handle client/match/group/create */ - public createGroup(sessionID: string, info: ICreateGroupRequestData): any - { - return this.matchLocationService.createGroup(sessionID, info); - } - /** Handle client/match/group/delete */ public deleteGroup(info: any): void { diff --git a/project/src/routers/static/MatchStaticRouter.ts b/project/src/routers/static/MatchStaticRouter.ts index eeb01ee8..3b2f5ec1 100644 --- a/project/src/routers/static/MatchStaticRouter.ts +++ b/project/src/routers/static/MatchStaticRouter.ts @@ -31,13 +31,6 @@ export class MatchStaticRouter extends StaticRouter { return this.matchCallbacks.exitMatch(url, info, sessionID); }), - new RouteAction( - "/client/match/group/create", - (url: string, info: any, sessionID: string, output: string): any => - { - return this.matchCallbacks.createGroup(url, info, sessionID); - }, - ), new RouteAction( "/client/match/group/delete", (url: string, info: any, sessionID: string, output: string): any => diff --git a/project/src/services/MatchLocationService.ts b/project/src/services/MatchLocationService.ts index 164834d1..3a407d5b 100644 --- a/project/src/services/MatchLocationService.ts +++ b/project/src/services/MatchLocationService.ts @@ -15,28 +15,6 @@ export class MatchLocationService ) {} - public createGroup(sessionID: string, info: ICreateGroupRequestData): any - { - const account = this.saveServer.getProfile(sessionID).info; - const groupID = "test"; - - this.locations[info.location].groups[groupID] = { - _id: groupID, - owner: account.id, - location: info.location, - gameVersion: "live", - region: "EUR", - status: "wait", - isSavage: false, - timeShift: "CURR", - dt: this.timeUtil.getTimestamp(), - players: [{ _id: account.id, region: "EUR", ip: "127.0.0.1", savageId: account.scavId, accessKeyId: "" }], - customDataCenter: [], - }; - - return this.locations[info.location].groups[groupID]; - } - public deleteGroup(info: any): void { for (const locationID in this.locations)