diff --git a/src/settings.js b/src/settings.js index a9d64fd7e..d6d13e955 100644 --- a/src/settings.js +++ b/src/settings.js @@ -39,7 +39,6 @@ exports = module.exports = { getCloudronToken: getCloudronToken, setCloudronToken: setCloudronToken, - get: get, getAll: getAll, // booleans. if you add an entry here, be sure to fix getAll @@ -484,15 +483,3 @@ function getAll(callback) { callback(null, result); }); } - -function get(name, callback) { - assert.strictEqual(typeof name, 'string'); - assert.strictEqual(typeof callback, 'function'); - - settingsdb.get(name, function (error, result) { - if (error && error.reason === DatabaseError.NOT_FOUND) return callback(null, gDefaults[exports.PLATFORM_CONFIG_KEY]); - if (error) return callback(new SettingsError(SettingsError.INTERNAL_ERROR, error)); - - callback(null, result); - }); -}