3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-14 19:25:51 +00:00

Utils: Remove unused and untested appendByte() helper.

This commit is contained in:
Andreas Schildbach 2018-02-22 10:54:29 +01:00
parent 8295afc03b
commit 0fd8ab3fa2

View File

@ -408,15 +408,6 @@ public class Utils {
return out;
}
/**
* Creates a copy of bytes and appends b to the end of it
*/
public static byte[] appendByte(byte[] bytes, byte b) {
byte[] result = Arrays.copyOf(bytes, bytes.length + 1);
result[result.length - 1] = b;
return result;
}
/**
* Attempts to parse the given string as arbitrary-length hex or base58 and then return the results, or null if
* neither parse was successful.