From 7e7892ff2ee6c49e6971483b759337dd216a96b7 Mon Sep 17 00:00:00 2001 From: William Faulk Date: Mon, 4 May 2015 17:15:10 -0400 Subject: [PATCH] revert unneeded changes for old temp Bluetooth share file --- .../keychain/KeychainApplication.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/KeychainApplication.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/KeychainApplication.java index 161979ce3..710dbf8aa 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/KeychainApplication.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/KeychainApplication.java @@ -40,8 +40,6 @@ import org.sufficientlysecure.keychain.util.PRNGFixes; import org.sufficientlysecure.keychain.util.Preferences; import org.sufficientlysecure.keychain.util.TlsHelper; -import java.io.File; -import java.io.FilenameFilter; import java.security.Security; import java.util.HashMap; @@ -90,17 +88,6 @@ public class KeychainApplication extends Application { } } - // Clean up leftover Bluetooth Share files - for (File toDelete : this.getExternalCacheDir().listFiles(new FilenameFilter() { - @Override - public boolean accept(File dir, String filename) { - if (filename.matches("^key-[0-9a-fA-F]{8}\\.pgp\\.asc$")) { - return true; - } - return false; - } - })) { toDelete.delete(); } - brandGlowEffect(getApplicationContext(), getApplicationContext().getResources().getColor(R.color.primary));