Browse Source

Remove redundant code

vishnukvmd 2 years ago
parent
commit
2386a5a10b
1 changed files with 0 additions and 2 deletions
  1. 0 2
      lib/store/code_store.dart

+ 0 - 2
lib/store/code_store.dart

@@ -30,9 +30,7 @@ class CodeStore {
   }
   }
 
 
   Future<void> addCode(Code code) async {
   Future<void> addCode(Code code) async {
-    final codes = await getAllCodes();
     code.id = await _authenticatorService.addEntry(jsonEncode(code.rawData));
     code.id = await _authenticatorService.addEntry(jsonEncode(code.rawData));
-    codes.add(code);
     Bus.instance.fire(CodesUpdatedEvent());
     Bus.instance.fire(CodesUpdatedEvent());
   }
   }