refactor: remove unneeded code in configuration handling
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 2 Sep 2023 19:52:21 +0000 (21:52 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 2 Sep 2023 19:52:21 +0000 (21:52 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/Configuration.ts

index 57e2943642bbdab9b163fa127cc83eb539b68cde..190a31a350f1a8c405bb47a96165c4643c09f9d8 100644 (file)
@@ -53,8 +53,6 @@ export class Configuration {
     [ConfigurationSection.uiServer, Configuration.buildUIServerSection()],
   ]);
 
-  private static warnDeprecatedConfigurationKeys = false;
-
   private static configurationChangeCallback?: () => Promise<void>;
 
   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(