From: Jérôme Benoit Date: Sat, 2 Sep 2023 19:52:21 +0000 (+0200) Subject: refactor: remove unneeded code in configuration handling X-Git-Tag: v1.2.21~36 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1e4afa08e53b964abbb65ac4aadf0850cccf1e78;p=e-mobility-charging-stations-simulator.git refactor: remove unneeded code in configuration handling Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index 57e29436..190a31a3 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -53,8 +53,6 @@ export class Configuration { [ConfigurationSection.uiServer, Configuration.buildUIServerSection()], ]); - private static warnDeprecatedConfigurationKeys = false; - private static configurationChangeCallback?: () => Promise; private constructor() { @@ -294,9 +292,6 @@ export class Configuration { }; private static checkDeprecatedConfigurationKeys() { - if (Configuration.warnDeprecatedConfigurationKeys) { - return; - } // connection timeout Configuration.warnDeprecatedConfigurationKey( 'autoReconnectTimeout', @@ -471,7 +466,6 @@ export class Configuration { )}`, ); } - Configuration.warnDeprecatedConfigurationKeys = true; } private static warnDeprecatedConfigurationKey(