removed unused code

This commit is contained in:
ashilkn 2022-09-22 16:17:30 +05:30
parent b9a600be43
commit b113155aed

View file

@ -439,17 +439,6 @@ class Configuration {
}
}
Future<void> setPathsToBackUp(Set<String> newPaths) async {
//unused code - remove
await _preferences.setStringList(foldersToBackUpKey, newPaths.toList());
final allFolders = (await FilesDB.instance.getLatestLocalFiles())
.map((file) => file.deviceFolder)
.toList();
await setSelectAllFoldersForBackup(newPaths.length == allFolders.length);
SyncService.instance.onFoldersSet(newPaths);
SyncService.instance.sync();
}
Future<void> setKeyAttributes(KeyAttributes attributes) async {
await _preferences.setString(keyAttributesKey, attributes.toJson());
}
@ -512,11 +501,6 @@ class Configuration {
);
}
String getDocumentsDirectory() {
//unused code - remove
return _documentsDirectory;
}
// Caution: This directory is cleared on app start
String getTempDirectory() {
return _tempDirectory;