From cbed39c38c79c12f8fb7c8f003a0a1535265fd2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Sat, 13 Sep 2014 19:35:01 +0200 Subject: [PATCH] Remove unused method in KeyUpdateHelper --- .../keychain/helper/KeyUpdateHelper.java | 17 ----------------- 1 file changed, 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 { private Context mContext; private KeychainIntentServiceHandler mHandler;