From: Jérôme Benoit Date: Fri, 23 Aug 2024 19:31:23 +0000 (+0200) Subject: refactor: remove unneeded blank lines X-Git-Tag: ocpp-server@v1.5.2~93 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b78c3f238166ea6c763bf046704a476a8ada90f1;p=e-mobility-charging-stations-simulator.git refactor: remove unneeded blank lines Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/AutomaticTransactionGenerator.ts b/src/charging-station/AutomaticTransactionGenerator.ts index 9b3bcaaf..ece8e243 100644 --- a/src/charging-station/AutomaticTransactionGenerator.ts +++ b/src/charging-station/AutomaticTransactionGenerator.ts @@ -51,7 +51,6 @@ export class AutomaticTransactionGenerator { private starting: boolean private stopping: boolean public readonly connectorsStatus: Map - public started: boolean private constructor (chargingStation: ChargingStation) { diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 87dfc509..1be626d9 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -208,7 +208,6 @@ export class ChargingStation extends EventEmitter { public starting: boolean public stationInfo?: ChargingStationInfo public readonly templateFile: string - public wsConnection: null | WebSocket constructor (index: number, templateFile: string, options?: ChargingStationOptions) { diff --git a/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts b/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts index 0e738116..06fc0cd4 100644 --- a/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts +++ b/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts @@ -60,7 +60,6 @@ const moduleName = 'OCPP16ResponseService' export class OCPP16ResponseService extends OCPPResponseService { protected payloadValidateFunctions: Map> - private readonly responseHandlers: Map public incomingRequestResponsePayloadValidateFunctions: Map< OCPP16IncomingRequestCommand, diff --git a/src/charging-station/ocpp/2.0/OCPP20ResponseService.ts b/src/charging-station/ocpp/2.0/OCPP20ResponseService.ts index dd16d998..a3735d83 100644 --- a/src/charging-station/ocpp/2.0/OCPP20ResponseService.ts +++ b/src/charging-station/ocpp/2.0/OCPP20ResponseService.ts @@ -27,7 +27,6 @@ const moduleName = 'OCPP20ResponseService' export class OCPP20ResponseService extends OCPPResponseService { protected payloadValidateFunctions: Map> - private readonly responseHandlers: Map public incomingRequestResponsePayloadValidateFunctions: Map< OCPP20IncomingRequestCommand, diff --git a/src/charging-station/ocpp/OCPPResponseService.ts b/src/charging-station/ocpp/OCPPResponseService.ts index 16bf140d..0eaf22f8 100644 --- a/src/charging-station/ocpp/OCPPResponseService.ts +++ b/src/charging-station/ocpp/OCPPResponseService.ts @@ -26,7 +26,6 @@ export abstract class OCPPResponseService { protected emptyResponseHandler = Constants.EMPTY_FUNCTION protected abstract payloadValidateFunctions: Map> private readonly version: OCPPVersion - public abstract incomingRequestResponsePayloadValidateFunctions: Map< IncomingRequestCommand, ValidateFunction diff --git a/src/charging-station/ui-server/AbstractUIServer.ts b/src/charging-station/ui-server/AbstractUIServer.ts index e9696c95..a639883d 100644 --- a/src/charging-station/ui-server/AbstractUIServer.ts +++ b/src/charging-station/ui-server/AbstractUIServer.ts @@ -34,7 +34,6 @@ export abstract class AbstractUIServer { protected readonly uiServices: Map public readonly chargingStations: Map - public readonly chargingStationTemplates: Set public constructor (protected readonly uiServerConfiguration: UIServerConfiguration) { diff --git a/src/charging-station/ui-server/ui-services/AbstractUIService.ts b/src/charging-station/ui-server/ui-services/AbstractUIService.ts index 3c3d51cb..78ca0650 100644 --- a/src/charging-station/ui-server/ui-services/AbstractUIService.ts +++ b/src/charging-station/ui-server/ui-services/AbstractUIService.ts @@ -117,16 +117,6 @@ export abstract class AbstractUIService { ) } - // public sendRequest ( - // uuid: `${string}-${string}-${string}-${string}-${string}`, - // procedureName: ProcedureName, - // requestPayload: RequestPayload - // ): void { - // this.uiServer.sendRequest( - // this.uiServer.buildProtocolRequest(uuid, procedureName, requestPayload) - // ) - // } - private async handleAddChargingStations ( _uuid?: `${string}-${string}-${string}-${string}-${string}`, _procedureName?: ProcedureName, @@ -369,6 +359,16 @@ export abstract class AbstractUIService { } } + // public sendRequest ( + // uuid: `${string}-${string}-${string}-${string}-${string}`, + // procedureName: ProcedureName, + // requestPayload: RequestPayload + // ): void { + // this.uiServer.sendRequest( + // this.uiServer.buildProtocolRequest(uuid, procedureName, requestPayload) + // ) + // } + public sendResponse ( uuid: `${string}-${string}-${string}-${string}-${string}`, responsePayload: ResponsePayload diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index 9ca0b913..e55fa0b6 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -80,7 +80,6 @@ const defaultWorkerConfiguration: WorkerConfiguration = { // eslint-disable-next-line @typescript-eslint/no-extraneous-class export class Configuration { public static configurationChangeCallback?: () => Promise - private static configurationData?: ConfigurationData private static configurationFile: string | undefined private static configurationFileReloading = false diff --git a/src/worker/WorkerSet.ts b/src/worker/WorkerSet.ts index c1369e12..2cec2d5f 100644 --- a/src/worker/WorkerSet.ts +++ b/src/worker/WorkerSet.ts @@ -31,7 +31,6 @@ export class WorkerSet extends Worke private started: boolean private readonly workerSet: Set - private workerStartup: boolean public readonly emitter: EventEmitterAsyncResource | undefined