refactor: remove deprecated configuration tunable handling
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 8 Aug 2023 20:24:59 +0000 (22:24 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 8 Aug 2023 20:24:59 +0000 (22:24 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts
src/utils/Configuration.ts

index 5aa4708b2fdb240890a9449d9fb6923e25d9e796..23c51265adb587d1afc6e71771bf19dc17b08d5b 100644 (file)
@@ -2070,9 +2070,7 @@ export class ChargingStation {
 
   // -1 for unlimited, 0 for disabling
   private getAutoReconnectMaxRetries(): number | undefined {
-    return (
-      this.stationInfo.autoReconnectMaxRetries ?? Configuration.getAutoReconnectMaxRetries() ?? -1
-    );
+    return this.stationInfo.autoReconnectMaxRetries ?? -1;
   }
 
   // 0 for disabling
index 9a4db77fddbe19345c1a921b08abef43f630f2c9..e9ec68846c6f8f1f1e7e62dc4b372455330aa041 100644 (file)
@@ -74,10 +74,6 @@ export class Configuration {
     return Configuration.configurationSectionCache.get(sectionName) as T;
   }
 
-  public static getAutoReconnectMaxRetries(): number | undefined {
-    return Configuration.getConfigurationData()?.autoReconnectMaxRetries;
-  }
-
   public static getStationTemplateUrls(): StationTemplateUrl[] | undefined {
     Configuration.checkDeprecatedConfigurationKeys();
     return Configuration.getConfigurationData()?.stationTemplateUrls;