Remove pointless singleton

This commit is contained in:
Ming Ming 2022-05-27 01:36:43 +08:00
parent 4ab4f83015
commit 6b5f62d91c

View file

@ -24,10 +24,6 @@ class AppDb {
static const dirStoreName = "dirs";
static const metaStoreName = "meta";
factory AppDb() => _inst;
AppDb._();
/// Run [fn] with an opened database instance
///
/// This function guarantees that:
@ -216,8 +212,6 @@ class AppDb {
}
}
static late final _inst = AppDb._();
static const _fileDbStoreName = "filesDb";
static const _fileStoreName = "files";