Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
Remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
schwartz-concordium committed Dec 14, 2023
1 parent ad7c7ae commit 7dcf4a0
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions integration_test/secret_storage/secret_storage_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ void main() {

late SecretStorageProvider storage;

Future<void> clearHiveBox() async {
if (Hive.isBoxOpen(SecretBoxEntity.table)) {
await Hive.lazyBox<SecretBoxEntity>(SecretBoxEntity.table).clear();
}
if (Hive.isBoxOpen(WebSecretStorageProvider.encryptedBoxTable)) {
await Hive.lazyBox(WebSecretStorageProvider.encryptedBoxTable).clear();
}
}

Future<void> deleteHiveFromDisk() async {
try {
// [Hive.deleteFromDisk] doesn't close by itself on
Expand All @@ -38,25 +29,6 @@ void main() {
await mobileStorage.deleteAll();
}

// setUpAll(() async {
// await Hive.initFlutter();
// storage = await SecretStorageProviderFactory.create();
// });

// tearDown(() async {
// if (kIsWeb) {
// await clearHiveBox();
// } else {
// await clearMobileStorage();
// }
// });

// tearDownAll(() async {
// if (kIsWeb) {
// await deleteHiveFromDisk();
// }
// });

setUpAll(() async {
await Hive.initFlutter();
});
Expand Down

0 comments on commit 7dcf4a0

Please sign in to comment.