Remove unused settings.get

This commit is contained in:
Girish Ramakrishnan
2019-07-25 16:31:02 -07:00
parent 2dda0efe83
commit 7fe66aa7fa
-13
View File
@@ -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);
});
}