diff --git a/src/freenet/crypt/DSAPublicKey.java b/src/freenet/crypt/DSAPublicKey.java index 102c8b46d1..2e40a998fe 100644 --- a/src/freenet/crypt/DSAPublicKey.java +++ b/src/freenet/crypt/DSAPublicKey.java @@ -98,10 +98,6 @@ public static CryptoKey read(InputStream i) throws IOException, CryptFormatExcep return new DSAPublicKey(i); } - public int keyId() { - return y.intValue(); - } - @Override public String toLongString() { return "y=" + HexUtil.biToHex(y); @@ -155,13 +151,6 @@ public boolean equals(Object o) { return o instanceof DSAPublicKey && equals((DSAPublicKey) o); } - public int compareTo(Object other) { - if(other instanceof DSAPublicKey) - return getY().compareTo(((DSAPublicKey) other).getY()); - else - return -1; - } - public SimpleFieldSet asFieldSet() { SimpleFieldSet fs = new SimpleFieldSet(true); fs.putSingle("y", Base64.encode(y.toByteArray()));