From c67256429774147be8e4c02e4698ace9121f86c6 Mon Sep 17 00:00:00 2001 From: Jakob Nixdorf Date: Thu, 10 Aug 2017 09:26:10 +0200 Subject: [PATCH] Backup: remove stub functions --- .../flocke/andotp/Activities/BackupActivity.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/org/shadowice/flocke/andotp/Activities/BackupActivity.java b/app/src/main/java/org/shadowice/flocke/andotp/Activities/BackupActivity.java index 2f84fe44..d5de47fb 100644 --- a/app/src/main/java/org/shadowice/flocke/andotp/Activities/BackupActivity.java +++ b/app/src/main/java/org/shadowice/flocke/andotp/Activities/BackupActivity.java @@ -297,10 +297,10 @@ public class BackupActivity extends BaseActivity { } } else if (requestCode == INTENT_OPEN_DOCUMENT_PGP && resultCode == RESULT_OK) { if (intent != null) - restoreEncryptedWithPGP(intent.getData()); + restoreEncryptedWithPGP(intent.getData(), null); } else if (requestCode == INTENT_SAVE_DOCUMENT_PGP && resultCode == RESULT_OK) { if (intent != null) - backupEncryptedWithPGP(intent.getData()); + backupEncryptedWithPGP(intent.getData(), null); } else if (requestCode == INTENT_ENCRYPT_PGP && resultCode == RESULT_OK) { backupEncryptedWithPGP(encryptTargetFile, intent); } else if (requestCode == INTENT_DECRYPT_PGP && resultCode == RESULT_OK) { @@ -489,10 +489,6 @@ public class BackupActivity extends BaseActivity { finishWithResult(); } - private void restoreEncryptedWithPGP(Uri uri) { - restoreEncryptedWithPGP(uri, null); - } - private void restoreEncryptedWithPGP(Uri uri, Intent decryptIntent) { if (decryptIntent == null) decryptIntent = new Intent(OpenPgpApi.ACTION_DECRYPT_VERIFY); @@ -528,10 +524,6 @@ public class BackupActivity extends BaseActivity { finishWithResult(); } - private void backupEncryptedWithPGP(Uri uri){ - backupEncryptedWithPGP(uri, null); - } - private void backupEncryptedWithPGP(Uri uri, Intent encryptIntent) { ArrayList entries = DatabaseHelper.loadDatabase(this); String plainJSON = DatabaseHelper.entriesToString(entries);