chore: remove dead code

This commit is contained in:
siiky 2024-09-12 17:08:06 +01:00
parent 19c7d73444
commit ccca6c345c

View file

@ -216,29 +216,15 @@ function load (versionId) {
})) }))
} }
function migrate () {
return loadLatest(OLD_SETTINGS_LOADER_SCHEMA_VERSION)
.then(res => {
const migrated = migration.migrate(res.config, res.accounts)
saveConfig(migrated.config)
saveAccounts(migrated.accounts)
return migrated
})
}
module.exports = { module.exports = {
saveConfig, saveConfig,
migrationSaveConfig, migrationSaveConfig,
resetConfig,
saveAccounts, saveAccounts,
resetAccounts,
loadAccounts, loadAccounts,
showAccounts, showAccounts,
loadLatest, loadLatest,
loadLatestConfig, loadLatestConfig,
loadLatestConfigOrNone, loadLatestConfigOrNone,
load, load,
migrate,
removeFromConfig removeFromConfig
} }