diff options
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/helper/KeyUpdateHelper.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/helper/KeyUpdateHelper.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/helper/KeyUpdateHelper.java index bd565fccf..9ca6d5c5b 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/helper/KeyUpdateHelper.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/helper/KeyUpdateHelper.java @@ -42,23 +42,6 @@ public class KeyUpdateHelper { updateTask.execute(); } - public ImportKeysListEntry getKeyByFingerprint(Context context, String fingerprint) { - String[] servers = Preferences.getPreferences(context).getKeyServers(); - if (servers != null && servers.length != 0 && servers[0] != null) { - try { - HkpKeyserver hkp = new HkpKeyserver(servers[0]); - for (ImportKeysListEntry key : hkp.search("0x" + fingerprint)) { - if (fingerprint.equals(key.getFingerprintHex())) { - return key; - } - } - } catch (Keyserver.QueryNeedsRepairException e) { - } catch (Keyserver.QueryFailedException e) { - } - } - return null; - } - private class UpdateTask extends AsyncTask<Void, Void, Void> { private Context mContext; private KeychainIntentServiceHandler mHandler; |