ソースを参照

[mob] Remove unused code

Neeraj Gupta 1 年間 前
コミット
29c58d5554
1 ファイル変更0 行追加13 行削除
  1. 0 13
      mobile/lib/face/db.dart

+ 0 - 13
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);