Browse Source

remove unused methods

Neeraj Gupta 3 years ago
parent
commit
f0085c0889
1 changed files with 0 additions and 36 deletions
  1. 0 36
      lib/db/ignored_files_db.dart

+ 0 - 36
lib/db/ignored_files_db.dart

@@ -91,42 +91,6 @@ class IgnoredFilesDB {
         "took ${duration.inMilliseconds} ms.");
         "took ${duration.inMilliseconds} ms.");
   }
   }
 
 
-  // returns a  map of device folder to set of title/filenames which exist
-  // in the particular device folder.
-  Future<Map<String, Set<String>>> getFilenamesForDeviceFolders(
-      Set<String> folders) async {
-    final result = <String, Set<String>>{};
-    final db = await instance.database;
-
-    if (folders.isEmpty) {
-      return result;
-    }
-    String inParam = "";
-    for (final folder in folders) {
-      inParam += "'" + folder.replaceAll("'", "''") + "',";
-    }
-    inParam = inParam.substring(0, inParam.length - 1);
-    final rows =
-        await db.query(tableName, where: '$columnDeviceFolder IN ($inParam)');
-    for (final row in rows) {
-      final ignoredFile = _getIgnoredFileFromRow(row);
-      result
-          .putIfAbsent(ignoredFile.deviceFolder, () => <String>{})
-          .add(ignoredFile.title);
-    }
-    return result;
-  }
-
-  Future<Set<String>> getAllLocalIDs() async {
-    final db = await instance.database;
-    final rows = await db.query(tableName);
-    final result = <String>{};
-    for (final row in rows) {
-      result.add(row[columnLocalID]);
-    }
-    return result;
-  }
-
   Future<List<IgnoredFile>> getAll() async {
   Future<List<IgnoredFile>> getAll() async {
     final db = await instance.database;
     final db = await instance.database;
     final rows = await db.query(tableName);
     final rows = await db.query(tableName);