From 5b59130994e9b5e8ed2cbcc1accb52fa278aae04 Mon Sep 17 00:00:00 2001 From: Rory& Date: Thu, 25 Dec 2025 07:50:34 +0100 Subject: [PATCH] Drop unused metrics configuration --- src/util/config/Config.ts | 2 -- src/util/config/types/MetricsConfiguration.ts | 21 ------------------- src/util/config/types/index.ts | 1 - 3 files changed, 24 deletions(-) delete mode 100644 src/util/config/types/MetricsConfiguration.ts diff --git a/src/util/config/Config.ts b/src/util/config/Config.ts index 9dd5b8935..6ada81701 100644 --- a/src/util/config/Config.ts +++ b/src/util/config/Config.ts @@ -28,7 +28,6 @@ import { GuildConfiguration, LimitsConfiguration, LoginConfiguration, - MetricsConfiguration, PasswordResetConfiguration, RabbitMQConfiguration, RegionConfiguration, @@ -53,7 +52,6 @@ export class ConfigValue { gif: GifConfiguration = new GifConfiguration(); rabbitmq: RabbitMQConfiguration = new RabbitMQConfiguration(); templates: TemplateConfiguration = new TemplateConfiguration(); - metrics: MetricsConfiguration = new MetricsConfiguration(); defaults: DefaultsConfiguration = new DefaultsConfiguration(); external: ExternalTokensConfiguration = new ExternalTokensConfiguration(); email: EmailConfiguration = new EmailConfiguration(); diff --git a/src/util/config/types/MetricsConfiguration.ts b/src/util/config/types/MetricsConfiguration.ts deleted file mode 100644 index c7cf28fd9..000000000 --- a/src/util/config/types/MetricsConfiguration.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* - Spacebar: A FOSS re-implementation and extension of the Discord.com backend. - Copyright (C) 2023 Spacebar and Spacebar Contributors - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . -*/ - -export class MetricsConfiguration { - timeout: number = 30000; -} diff --git a/src/util/config/types/index.ts b/src/util/config/types/index.ts index fc8c85605..9f6ac23c4 100644 --- a/src/util/config/types/index.ts +++ b/src/util/config/types/index.ts @@ -27,7 +27,6 @@ export * from "./GifConfiguration"; export * from "./GuildConfiguration"; export * from "./LimitConfigurations"; export * from "./LoginConfiguration"; -export * from "./MetricsConfiguration"; export * from "./PasswordResetConfiguration"; export * from "./RabbitMQConfiguration"; export * from "./RegionConfiguration";