diff --git a/briar-core/libs/source/scprov-jdk15on-1.47.0.3-SNAPSHOT-source.jar b/briar-core/libs/source/scprov-jdk15on-1.47.0.3-SNAPSHOT-source.jar deleted file mode 100644 index ebfa4c2b04fbbf9e2f661e7c106c6275bd21fac7..0000000000000000000000000000000000000000 Binary files a/briar-core/libs/source/scprov-jdk15on-1.47.0.3-SNAPSHOT-source.jar and /dev/null differ diff --git a/briar-core/src/net/sf/briar/util/ByteUtils.java b/briar-core/src/net/sf/briar/util/ByteUtils.java index c64fddf6165764cfc922d0b464e51b5f5d5a0aad..bb9d3bce5a15881f384feafa95b0e5e9b3823797 100644 --- a/briar-core/src/net/sf/briar/util/ByteUtils.java +++ b/briar-core/src/net/sf/briar/util/ByteUtils.java @@ -62,22 +62,4 @@ public class ByteUtils { assert result < 1 << bits; return result; } - - /** - * Compares two byte arrays and returns -1, 0, or +1 if the first array is - * less than, equal to, or greater than the second array, respectively. - * <p> - * If one of the arrays is a prefix of the other, the longer array is - * considered to be greater. Bytes are treated as unsigned. - */ - public static int compare(byte[] b1, byte[] b2) { - for(int i = 0; i < b1.length || i < b2.length; i++) { - if(i == b1.length) return -1; - if(i == b2.length) return 1; - int b1i = b1[i] & 0xff, b2i = b2[i] & 0xff; - if(b1i < b2i) return -1; - if(b1i > b2i) return 1; - } - return 0; - } }