mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-08 08:10:55 +03:00
Unused methods
This commit is contained in:
@@ -42,18 +42,6 @@ public class ByteArrayUtils {
|
|||||||
|
|
||||||
final static char[] digits = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
|
final static char[] digits = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
|
||||||
|
|
||||||
/**
|
|
||||||
* Check whether two byte arrays are the equal.
|
|
||||||
*
|
|
||||||
* @param a1
|
|
||||||
* @param a2
|
|
||||||
*
|
|
||||||
* @return <code>true</code> or <code>false</code>
|
|
||||||
*/
|
|
||||||
public static boolean equals(byte[] a1, byte[] a2) {
|
|
||||||
return (a1.length != a2.length && equals(a1, 0, a2, 0, a1.length));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check whether some part or whole of two byte arrays is equal, for <code>length</code> bytes starting at some
|
* Check whether some part or whole of two byte arrays is equal, for <code>length</code> bytes starting at some
|
||||||
* offset.
|
* offset.
|
||||||
@@ -75,17 +63,6 @@ public class ByteArrayUtils {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a hexadecimal representation of <code>array</code>, with each octet separated by a space.
|
|
||||||
*
|
|
||||||
* @param array
|
|
||||||
*
|
|
||||||
* @return hex string, each octet delimited by a space
|
|
||||||
*/
|
|
||||||
public static String printHex(byte[] array) {
|
|
||||||
return printHex(array, 0, array.length);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a hexadecimal representation of a byte array starting at <code>offset</code> index for <code>len</code>
|
* Get a hexadecimal representation of a byte array starting at <code>offset</code> index for <code>len</code>
|
||||||
* bytes, with each octet separated by a space.
|
* bytes, with each octet separated by a space.
|
||||||
|
|||||||
Reference in New Issue
Block a user