Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob] Remove unused code

Neeraj Gupta29c58d555467
diff --git a/mobile/lib/face/db.dart b/mobile/lib/face/db.dart
index 6477cb8338..73dc462802 100644
--- a/mobile/lib/face/db.dart
+++ b/mobile/lib/face/db.dart
@@ -595,18 +595,6 @@ class FaceMLDataDB {
return result;
}
- Future<Map<int, String>> getCluserIDToPersonMap() async {
- final db = await instance.database;
- final List<Map<String, dynamic>> maps = await db.rawQuery(
- 'SELECT $personIdColumn, $cluserIDColumn FROM $clustersTable',
- );
- final Map<int, String> result = {};
- for (final map in maps) {
- result[map[cluserIDColumn] as int] = map[personIdColumn] as String;
- }
- return result;
- }
-
Future<(Map<int, Person>, Map<String, Person>)> getClusterIdToPerson() async {
final db = await instance.database;
final Map<String, Person> peopleMap = await getPeopleMap();
@@ -674,7 +662,6 @@ class FaceMLDataDB {
await db.execute(dropClusterSummaryTable);
await db.execute(dropNotPersonFeedbackTable);
- // await db.execute(createFacesTable);
await db.execute(createPeopleTable);
await db.execute(createClusterTable);
await db.execute(createNotPersonFeedbackTable);