Remove unused endpoint client/match/group/create

This commit is contained in:
Dev 2024-03-09 16:46:40 +00:00
parent 5011af03ea
commit 7e1a47bedc
4 changed files with 0 additions and 42 deletions

View File

@ -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<any>
{
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

View File

@ -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
{

View File

@ -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 =>

View File

@ -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)