diff -r 4ff3f9d83fe5 -r f15d443f9731 src/jdk.compiler/share/classes/com/sun/tools/javac/parser/UnicodeReader.java --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/UnicodeReader.java Wed Jan 09 15:36:20 2019 +0100 +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/UnicodeReader.java Wed Jan 09 11:13:00 2019 -0400 @@ -64,10 +64,6 @@ */ protected int unicodeConversionBp = -1; - /** Control conversion of unicode characters - */ - protected boolean unicodeConversion = true; - protected Log log; protected Names names; @@ -158,17 +154,11 @@ return new String(sbuf, 0, sp); } - protected boolean setUnicodeConversion(boolean newState) { - boolean oldState = unicodeConversion; - unicodeConversion = newState; - return oldState; - } - /** Convert unicode escape; bp points to initial '\' character * (Spec 3.3). */ protected void convertUnicode() { - if (ch == '\\' && unicodeConversion && unicodeConversionBp != bp ) { + if (ch == '\\' && unicodeConversionBp != bp ) { bp++; ch = buf[bp]; if (ch == 'u') { do { @@ -264,24 +254,6 @@ return buf[bp + 1]; } - protected char peekBack() { - return buf[bp]; - } - - /** - * Skips consecutive occurrences of the current character, leaving bp positioned - * at the last occurrence. Returns the occurrence count. - */ - protected int skipRepeats() { - int start = bp; - while (bp < buflen) { - if (buf[bp] != buf[bp + 1]) - break; - bp++; - } - return bp - start; - } - /** * Returns a copy of the input buffer, up to its inputLength. * Unicode escape sequences are not translated.