Explorar o código

[mob] Remove unused code

Neeraj Gupta hai 1 ano
pai
achega
29c58d5554
Modificáronse 1 ficheiros con 0 adicións e 13 borrados
  1. 0 13
      mobile/lib/face/db.dart

+ 0 - 13
mobile/lib/face/db.dart

@@ -595,18 +595,6 @@ class FaceMLDataDB {
     return result;
     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 {
   Future<(Map<int, Person>, Map<String, Person>)> getClusterIdToPerson() async {
     final db = await instance.database;
     final db = await instance.database;
     final Map<String, Person> peopleMap = await getPeopleMap();
     final Map<String, Person> peopleMap = await getPeopleMap();
@@ -674,7 +662,6 @@ class FaceMLDataDB {
     await db.execute(dropClusterSummaryTable);
     await db.execute(dropClusterSummaryTable);
     await db.execute(dropNotPersonFeedbackTable);
     await db.execute(dropNotPersonFeedbackTable);
 
 
-    // await db.execute(createFacesTable);
     await db.execute(createPeopleTable);
     await db.execute(createPeopleTable);
     await db.execute(createClusterTable);
     await db.execute(createClusterTable);
     await db.execute(createNotPersonFeedbackTable);
     await db.execute(createNotPersonFeedbackTable);