fix: cleanup StringBlock from unused methods

This commit is contained in:
Connor Tumbleson 2021-03-28 17:26:35 -04:00
parent d2288ef921
commit 0a7b843786
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75

View File

@ -74,14 +74,6 @@ public class StringBlock {
return block; return block;
} }
/**
* Returns number of strings in block.
* @return int
*/
public int getCount() {
return m_stringOffsets != null ? m_stringOffsets.length : 0;
}
/** /**
* Returns raw string (without any styling information) at specified index. * Returns raw string (without any styling information) at specified index.
* @param index int * @param index int
@ -316,15 +308,6 @@ public class StringBlock {
return (array[offset + 1] & 0xff) << 8 | array[offset] & 0xff; return (array[offset + 1] & 0xff) << 8 | array[offset] & 0xff;
} }
private static final int getShort(int[] array, int offset) {
int value = array[offset / 4];
if ((offset % 4) / 2 == 0) {
return (value & 0xFFFF);
} else {
return (value >>> 16);
}
}
private static final int[] getUtf8(byte[] array, int offset) { private static final int[] getUtf8(byte[] array, int offset) {
int val = array[offset]; int val = array[offset];
int length; int length;