mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-05 17:45:52 +01:00
fix: cleanup StringBlock from unused methods
This commit is contained in:
parent
d2288ef921
commit
0a7b843786
@ -74,14 +74,6 @@ public class StringBlock {
|
||||
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.
|
||||
* @param index int
|
||||
@ -316,15 +308,6 @@ public class StringBlock {
|
||||
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) {
|
||||
int val = array[offset];
|
||||
int length;
|
||||
|
Loading…
Reference in New Issue
Block a user