Skip to content

Commit f5f29e9

Browse files
committed
Remove unnecessary method.
1 parent b87b8fd commit f5f29e9

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

httpclient5/src/main/java/org/apache/hc/client5/http/impl/ProtocolSwitchStrategy.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -106,24 +106,6 @@ private boolean containsConnectionUpgrade(final HttpMessage message) {
106106
return found.get();
107107
}
108108

109-
private boolean containsUpgradeToken(final CharSequence buffer, final ParserCursor cursor) throws ProtocolException {
110-
while (!cursor.atEnd()) {
111-
TOKENIZER.skipWhiteSpace(buffer, cursor);
112-
final String token = TOKENIZER.parseToken(buffer, cursor, UPGRADE_TOKEN_DELIMITER);
113-
if (token.equalsIgnoreCase("upgrade")) {
114-
return true;
115-
}
116-
TOKENIZER.skipWhiteSpace(buffer, cursor);
117-
if (!cursor.atEnd()) {
118-
final char ch = buffer.charAt(cursor.getPos());
119-
if (ch == ',') {
120-
cursor.updatePos(cursor.getPos() + 1);
121-
}
122-
}
123-
}
124-
return false;
125-
}
126-
127109
private ProtocolVersion parseProtocolVersion(final CharSequence buffer, final ParserCursor cursor) throws ProtocolException {
128110
TOKENIZER.skipWhiteSpace(buffer, cursor);
129111
final String proto = TOKENIZER.parseToken(buffer, cursor, LAX_PROTO_DELIMITER);

0 commit comments

Comments
 (0)