Skip to content

Commit

Permalink
refactor: remove unneeded blank lines
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
  • Loading branch information
jerome-benoit committed Aug 23, 2024
1 parent 42f3318 commit b78c3f2
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 18 deletions.
1 change: 0 additions & 1 deletion src/charging-station/AutomaticTransactionGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export class AutomaticTransactionGenerator {
private starting: boolean
private stopping: boolean
public readonly connectorsStatus: Map<number, Status>

public started: boolean

private constructor (chargingStation: ChargingStation) {
Expand Down
1 change: 0 additions & 1 deletion src/charging-station/ChargingStation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion src/charging-station/ocpp/1.6/OCPP16ResponseService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ const moduleName = 'OCPP16ResponseService'

export class OCPP16ResponseService extends OCPPResponseService {
protected payloadValidateFunctions: Map<OCPP16RequestCommand, ValidateFunction<JsonType>>

private readonly responseHandlers: Map<OCPP16RequestCommand, ResponseHandler>
public incomingRequestResponsePayloadValidateFunctions: Map<
OCPP16IncomingRequestCommand,
Expand Down
1 change: 0 additions & 1 deletion src/charging-station/ocpp/2.0/OCPP20ResponseService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const moduleName = 'OCPP20ResponseService'

export class OCPP20ResponseService extends OCPPResponseService {
protected payloadValidateFunctions: Map<OCPP20RequestCommand, ValidateFunction<JsonType>>

private readonly responseHandlers: Map<OCPP20RequestCommand, ResponseHandler>
public incomingRequestResponsePayloadValidateFunctions: Map<
OCPP20IncomingRequestCommand,
Expand Down
1 change: 0 additions & 1 deletion src/charging-station/ocpp/OCPPResponseService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export abstract class OCPPResponseService {
protected emptyResponseHandler = Constants.EMPTY_FUNCTION
protected abstract payloadValidateFunctions: Map<RequestCommand, ValidateFunction<JsonType>>
private readonly version: OCPPVersion

public abstract incomingRequestResponsePayloadValidateFunctions: Map<
IncomingRequestCommand,
ValidateFunction<JsonType>
Expand Down
1 change: 0 additions & 1 deletion src/charging-station/ui-server/AbstractUIServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export abstract class AbstractUIServer {

protected readonly uiServices: Map<ProtocolVersion, AbstractUIService>
public readonly chargingStations: Map<string, ChargingStationData>

public readonly chargingStationTemplates: Set<string>

public constructor (protected readonly uiServerConfiguration: UIServerConfiguration) {
Expand Down
20 changes: 10 additions & 10 deletions src/charging-station/ui-server/ui-services/AbstractUIService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/utils/Configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ const defaultWorkerConfiguration: WorkerConfiguration = {
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
export class Configuration {
public static configurationChangeCallback?: () => Promise<void>

private static configurationData?: ConfigurationData
private static configurationFile: string | undefined
private static configurationFileReloading = false
Expand Down
1 change: 0 additions & 1 deletion src/worker/WorkerSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export class WorkerSet<D extends WorkerData, R extends WorkerData> extends Worke

private started: boolean
private readonly workerSet: Set<WorkerSetElement>

private workerStartup: boolean
public readonly emitter: EventEmitterAsyncResource | undefined

Expand Down

0 comments on commit b78c3f2

Please sign in to comment.