remove unused code

This commit is contained in:
ashilkn 2022-09-13 17:49:36 +05:30
parent 76092f243c
commit ee308d34ff
2 changed files with 1 additions and 9 deletions

View file

@ -5,8 +5,4 @@ abstract class EnteFile {
// returns cacheKey which should be used while caching entry related to
// this file.
String? cacheKey();
// returns localIdentifier for the file on the host OS.
// Can be null if the file only exist on remote
String? localIdentifier();
}

View file

@ -275,13 +275,9 @@ class File extends EnteFile {
}
@override
//add nullable return type when migrating to null safety
String cacheKey() {
// todo: Neeraj: 19thJuly'22: evaluate and add fileHash as the key?
return localID ?? uploadedFileID?.toString() ?? generatedID?.toString();
}
@override
String localIdentifier() {
return localID;
}
}