Backup: remove stub functions

This commit is contained in:
Jakob Nixdorf 2017-08-10 09:26:10 +02:00
parent bb8708466b
commit c672564297
No known key found for this signature in database
GPG key ID: BE99BF86574A7DBC

View file

@ -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<Entry> entries = DatabaseHelper.loadDatabase(this);
String plainJSON = DatabaseHelper.entriesToString(entries);