mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-16 04:05:50 +00:00
Utils: Remove unused and untested isLessThanUnsigned() and isLessThanOrEqualToUnsigned() helpers.
This commit is contained in:
parent
4daac38758
commit
90636275af
@ -22,7 +22,6 @@ import com.google.common.collect.Lists;
|
|||||||
import com.google.common.collect.Ordering;
|
import com.google.common.collect.Ordering;
|
||||||
import com.google.common.io.BaseEncoding;
|
import com.google.common.io.BaseEncoding;
|
||||||
import com.google.common.primitives.Ints;
|
import com.google.common.primitives.Ints;
|
||||||
import com.google.common.primitives.UnsignedLongs;
|
|
||||||
import org.spongycastle.crypto.digests.RIPEMD160Digest;
|
import org.spongycastle.crypto.digests.RIPEMD160Digest;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -135,20 +134,6 @@ public class Utils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Work around lack of unsigned types in Java.
|
|
||||||
*/
|
|
||||||
public static boolean isLessThanUnsigned(long n1, long n2) {
|
|
||||||
return UnsignedLongs.compare(n1, n2) < 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Work around lack of unsigned types in Java.
|
|
||||||
*/
|
|
||||||
public static boolean isLessThanOrEqualToUnsigned(long n1, long n2) {
|
|
||||||
return UnsignedLongs.compare(n1, n2) <= 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hex encoding used throughout the framework. Use with HEX.encode(byte[]) or HEX.decode(CharSequence).
|
* Hex encoding used throughout the framework. Use with HEX.encode(byte[]) or HEX.decode(CharSequence).
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user