mirror of
https://github.com/revanced/Apktool.git
synced 2024-09-05 05:55:29 +02: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;
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user