From 29b348791165e71714e03a66b12068fdc21e673d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 8 Aug 2023 22:24:59 +0200 Subject: [PATCH] refactor: remove deprecated configuration tunable handling MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ChargingStation.ts | 4 +--- src/utils/Configuration.ts | 4 ---- 2 files changed, 1 insertion(+), 7 deletions(-) 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; -- 2.34.1