Skip to content

Commit

Permalink
feat: Remove the RealtimeUpdateService.
Browse files Browse the repository at this point in the history
  • Loading branch information
vxern committed Sep 19, 2024
1 parent 47ede64 commit d21a296
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 88 deletions.
5 changes: 0 additions & 5 deletions source/library/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { Guild } from "logos/models/guild";
import { Model } from "logos/models/model";
import type { InteractionRepetitionService } from "logos/services/interaction-repetition";
import type { LavalinkService } from "logos/services/lavalink";
import type { RealtimeUpdateService } from "logos/services/realtime-updates";
import type { StatusService } from "logos/services/status";
import { AdapterStore } from "logos/stores/adapters";
import { CacheStore } from "logos/stores/cache";
Expand Down Expand Up @@ -205,10 +204,6 @@ class Client {
return this.#services.global.interactionRepetition;
}

get realtimeUpdateService(): RealtimeUpdateService {
return this.#services.global.realtimeUpdates;
}

get statusService(): StatusService {
return this.#services.global.status;
}
Expand Down
76 changes: 0 additions & 76 deletions source/library/services/realtime-updates.ts

This file was deleted.

3 changes: 0 additions & 3 deletions source/library/stores/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import type { PromptService } from "logos/services/prompts/service";
import { SuggestionPromptService } from "logos/services/prompts/suggestions";
import { TicketPromptService } from "logos/services/prompts/tickets";
import { VerificationPromptService } from "logos/services/prompts/verification";
import { RealtimeUpdateService } from "logos/services/realtime-updates";
import { RoleIndicatorService } from "logos/services/role-indicators";
import type { Service } from "logos/services/service";
import { StatusService } from "logos/services/status";
Expand All @@ -29,7 +28,6 @@ class ServiceStore {
readonly global: {
readonly lavalink?: LavalinkService;
readonly interactionRepetition: InteractionRepetitionService;
readonly realtimeUpdates: RealtimeUpdateService;
readonly status: StatusService;
};
readonly local: {
Expand Down Expand Up @@ -74,7 +72,6 @@ class ServiceStore {
this.global = {
lavalink: lavalinkService,
interactionRepetition: new InteractionRepetitionService(client),
realtimeUpdates: new RealtimeUpdateService(client),
status: new StatusService(client),
};
this.local = {
Expand Down
4 changes: 0 additions & 4 deletions test/source/library/client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ describe("Client", () => {
// TODO(vxern): Add tests. Check delegates or retrieves value.
});

describe("realtimeUpdateService()", () => {
// TODO(vxern): Add tests. Check delegates or retrieves value.
});

describe("statusService()", () => {
// TODO(vxern): Add tests. Check delegates or retrieves value.
});
Expand Down

0 comments on commit d21a296

Please sign in to comment.