Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Deleted no longer required constants and diskLogic functions
Browse files Browse the repository at this point in the history
  • Loading branch information
louneskmt committed Nov 6, 2020
1 parent 33cb063 commit 5a5068d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
12 changes: 0 additions & 12 deletions logic/disk.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 0 additions & 2 deletions utils/const.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 5a5068d

Please sign in to comment.