From: Jérôme Benoit Date: Tue, 8 Aug 2023 20:24:59 +0000 (+0200) Subject: refactor: remove deprecated configuration tunable handling X-Git-Tag: v1.2.20~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=29b348791165e71714e03a66b12068fdc21e673d;p=e-mobility-charging-stations-simulator.git refactor: remove deprecated configuration tunable handling Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 5aa4708b..23c51265 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -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 diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index 9a4db77f..e9ec6884 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -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;