chore: remove StringBlock unused m_stringOwns

This commit is contained in:
Connor Tumbleson 2020-11-28 12:42:14 -05:00 committed by Connor Tumbleson
parent b2ca3e37d3
commit 45ae71204e

View File

@ -54,8 +54,6 @@ public class StringBlock {
StringBlock block = new StringBlock(); StringBlock block = new StringBlock();
block.m_isUTF8 = (flags & UTF8_FLAG) != 0; block.m_isUTF8 = (flags & UTF8_FLAG) != 0;
block.m_stringOffsets = reader.readIntArray(stringCount); block.m_stringOffsets = reader.readIntArray(stringCount);
block.m_stringOwns = new int[stringCount];
Arrays.fill(block.m_stringOwns, -1);
if (styleCount != 0) { if (styleCount != 0) {
block.m_styleOffsets = reader.readIntArray(styleCount); block.m_styleOffsets = reader.readIntArray(styleCount);
@ -353,7 +351,6 @@ public class StringBlock {
private int[] m_styleOffsets; private int[] m_styleOffsets;
private int[] m_styles; private int[] m_styles;
private boolean m_isUTF8; private boolean m_isUTF8;
private int[] m_stringOwns;
private final CharsetDecoder UTF16LE_DECODER = Charset.forName("UTF-16LE").newDecoder(); private final CharsetDecoder UTF16LE_DECODER = Charset.forName("UTF-16LE").newDecoder();
private final CharsetDecoder UTF8_DECODER = Charset.forName("UTF-8").newDecoder(); private final CharsetDecoder UTF8_DECODER = Charset.forName("UTF-8").newDecoder();