mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
[mob] Remove unused method
This commit is contained in:
parent
3fb323ef29
commit
81c94b1e73
@ -630,7 +630,8 @@ class FaceMLDataDB {
|
||||
}
|
||||
|
||||
Future<Map<int, PersonEntity>> getClusterIdToPerson(
|
||||
Map<String, PersonEntity> personMap,) async {
|
||||
Map<String, PersonEntity> personMap,
|
||||
) async {
|
||||
final db = await instance.database;
|
||||
final List<Map<String, dynamic>> maps = await db.rawQuery(
|
||||
'SELECT $personIdColumn, $cluserIDColumn FROM $clusterPersonTable',
|
||||
@ -650,21 +651,6 @@ class FaceMLDataDB {
|
||||
return result;
|
||||
}
|
||||
|
||||
Future<List<PersonEntity>> getPersons() async {
|
||||
final db = await instance.database;
|
||||
final List<Map<String, dynamic>> maps = await db.query(
|
||||
personTable,
|
||||
columns: [
|
||||
idColumn,
|
||||
nameColumn,
|
||||
personHiddenColumn,
|
||||
clusterToFaceIdJson,
|
||||
coverFaceIDColumn,
|
||||
],
|
||||
);
|
||||
return maps.map((map) => mapRowToPerson(map)).toList();
|
||||
}
|
||||
|
||||
/// WARNING: This will delete ALL data in the database! Only use this for debug/testing purposes!
|
||||
Future<void> dropClustersAndPersonTable({bool faces = false}) async {
|
||||
final db = await instance.database;
|
||||
|
Loading…
x
Reference in New Issue
Block a user