From 5a5068d7373ce8295ca6b2654829f0577cc32f20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Loun=C3=A8s=20Ksouri?= Date: Fri, 6 Nov 2020 13:05:42 +0100 Subject: [PATCH] Deleted no longer required constants and diskLogic functions --- logic/disk.js | 12 ------------ utils/const.js | 2 -- 2 files changed, 14 deletions(-) diff --git a/logic/disk.js b/logic/disk.js index 467c46f..5181b1e 100644 --- a/logic/disk.js +++ b/logic/disk.js @@ -52,18 +52,6 @@ function readUserFile() { return diskService.readJsonFile(constants.USER_FILE); } -function readDefaultSettingsFile() { - return diskService.readJsonFile(constants.DEFAULT_SETTINGS_FILE); -} - -function readSettingsFile() { - return diskService.readJsonFile(constants.SETTINGS_FILE); -} - -function writeSettingsFile(json) { - return diskService.writeJsonFile(constants.SETTINGS_FILE, json); -} - async function writeUserFile(json) { return diskService.writeJsonFile(constants.USER_FILE, json); } diff --git a/utils/const.js b/utils/const.js index 4894576..e25b514 100644 --- a/utils/const.js +++ b/utils/const.js @@ -4,8 +4,6 @@ module.exports = { REQUEST_CORRELATION_ID_KEY: 'reqId', DEVICE_HOSTNAME: process.env.DEVICE_HOSTNAME || 'umbrel.local', USER_FILE: process.env.USER_FILE || '/db/user.json', - SETTINGS_FILE: process.env.SETTINGS_FILE || '/db/settings.json', - DEFAULT_SETTINGS_FILE: process.env.DEFAULT_SETTINGS_FILE || '/templates/db-settings-sample.json', SHUTDOWN_SIGNAL_FILE: process.env.SHUTDOWN_SIGNAL_FILE || '/signals/shutdown', REBOOT_SIGNAL_FILE: process.env.REBOOT_SIGNAL_FILE || '/signals/reboot', JWT_PUBLIC_KEY_FILE: process.env.JWT_PUBLIC_KEY_FILE || '/db/jwt-public-key/jwt.pem',