diff --git a/android/src/androidTest/java/org/ligi/passandroid/injections/FixedPassListPassStore.kt b/android/src/androidTest/java/org/ligi/passandroid/injections/FixedPassListPassStore.kt index 60dd2347..41a35a74 100644 --- a/android/src/androidTest/java/org/ligi/passandroid/injections/FixedPassListPassStore.kt +++ b/android/src/androidTest/java/org/ligi/passandroid/injections/FixedPassListPassStore.kt @@ -16,10 +16,6 @@ class FixedPassListPassStore(private val passes: List) : PassStore { return@lazy hashMap } - override fun deleteCacheForId(id: String) { - - } - override fun getPassbookForId(id: String): Pass? { return passMap[id] } diff --git a/android/src/main/java/org/ligi/passandroid/model/AndroidFileSystemPassStore.kt b/android/src/main/java/org/ligi/passandroid/model/AndroidFileSystemPassStore.kt index caff6ff9..046354d8 100644 --- a/android/src/main/java/org/ligi/passandroid/model/AndroidFileSystemPassStore.kt +++ b/android/src/main/java/org/ligi/passandroid/model/AndroidFileSystemPassStore.kt @@ -25,10 +25,6 @@ class AndroidFileSystemPassStore(private val context: Context, settings: Setting FileBackedPassClassifier(classificationFile, this, moshi) } - override fun deleteCacheForId(id: String) { - - } - override fun save(pass: Pass) { val jsonAdapter = moshi.adapter(PassImpl::class.java) diff --git a/android/src/main/java/org/ligi/passandroid/model/PassStore.kt b/android/src/main/java/org/ligi/passandroid/model/PassStore.kt index c8dbd4b4..35930a8d 100644 --- a/android/src/main/java/org/ligi/passandroid/model/PassStore.kt +++ b/android/src/main/java/org/ligi/passandroid/model/PassStore.kt @@ -7,8 +7,6 @@ interface PassStore { fun save(pass: Pass) - fun deleteCacheForId(id: String) - fun getPassbookForId(id: String): Pass? fun deletePassWithId(id: String): Boolean diff --git a/android/src/main/java/org/ligi/passandroid/ui/PassViewActivityBase.java b/android/src/main/java/org/ligi/passandroid/ui/PassViewActivityBase.java index 933c22cc..3d6743c8 100644 --- a/android/src/main/java/org/ligi/passandroid/ui/PassViewActivityBase.java +++ b/android/src/main/java/org/ligi/passandroid/ui/PassViewActivityBase.java @@ -213,9 +213,8 @@ public class PassViewActivityBase extends PassAndroidActivity { } dlg.dismiss(); if (!optionalPass.getId().equals(uuid)) { - passStore.deletePassWithId(optionalPass.getId()); + passStore.deletePassWithId(uuid); } - passStore.deleteCacheForId(uuid); final Pass newPass = passStore.getPassbookForId( uuid); passStore.setCurrentPass(newPass);