diff --git a/lib/machine-loader.js b/lib/machine-loader.js index c2729f83..5ce26a5a 100644 --- a/lib/machine-loader.js +++ b/lib/machine-loader.js @@ -74,14 +74,6 @@ function getMachineNames (config) { const mergeByDeviceId = (x, y) => _.values(_.merge(_.keyBy('deviceId', x), _.keyBy('deviceId', y))) const machines = mergeByDeviceId(mergeByDeviceId(rawMachines, heartbeat), performance) - const getStatus = (ping, stuck) => { - if (ping && ping.age) return unresponsiveStatus - - if (stuck && stuck.age) return stuckStatus - - return fullyFunctionalStatus - } - const addName = r => { const cashOutConfig = configManager.getCashOut(r.deviceId, config)