This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit b62a595747880b9a1a3595751be0cad8c24975bc Author: Mark Thomas <ma...@apache.org> AuthorDate: Sat Sep 16 10:59:13 2023 +0100 Remove unused code --- .../util/http/fileupload/MultipartStream.java | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/java/org/apache/tomcat/util/http/fileupload/MultipartStream.java b/java/org/apache/tomcat/util/http/fileupload/MultipartStream.java index 137185aa77..179673654c 100644 --- a/java/org/apache/tomcat/util/http/fileupload/MultipartStream.java +++ b/java/org/apache/tomcat/util/http/fileupload/MultipartStream.java @@ -650,27 +650,6 @@ public class MultipartStream { return true; } - /** - * Searches for a byte of specified value in the {@code buffer}, - * starting at the specified {@code position}. - * - * @param value The value to find. - * @param pos The starting position for searching. - * - * @return The position of byte found, counting from beginning of the - * {@code buffer}, or {@code -1} if not found. - */ - protected int findByte(final byte value, - final int pos) { - for (int i = pos; i < tail; i++) { - if (buffer[i] == value) { - return i; - } - } - - return -1; - } - /** * Searches for the {@code boundary} in the {@code buffer} * region delimited by {@code head} and {@code tail}. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org