mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-24 07:58:50 -05:00
Remove unused method in KeyUpdateHelper
This commit is contained in:
parent
a41b9f08d0
commit
cbed39c38c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user