refactor: cleanup utils export
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 20 Mar 2024 19:35:25 +0000 (20:35 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 20 Mar 2024 19:35:25 +0000 (20:35 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/MessageChannelUtils.ts
src/utils/index.ts

index 1af746daafe67840e536c95a8ef719171b37de4a..4164c36bf11c96f18b8250cfd47be98bdeb897d5 100644 (file)
@@ -66,9 +66,7 @@ export const buildPerformanceStatisticsMessage = (
   }
 }
 
-export const buildChargingStationDataPayload = (
-  chargingStation: ChargingStation
-): ChargingStationData => {
+const buildChargingStationDataPayload = (chargingStation: ChargingStation): ChargingStationData => {
   return {
     started: chargingStation.started,
     // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
index a09ae0a53719337c6511df19882c74e842e5d782..e1d6734c9c1fba31a6bf7eaeaad68e3e44abd913 100644 (file)
@@ -20,7 +20,6 @@ export { watchJsonFile } from './FileUtils.js'
 export { logger } from './Logger.js'
 export {
   buildAddedMessage,
-  buildChargingStationDataPayload,
   buildDeletedMessage,
   buildPerformanceStatisticsMessage,
   buildStartedMessage,