This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 5047bc090c8ed21ea140826d79c40c149f7a290d Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Jul 25 09:42:43 2024 +0100 Remove unused code --- java/org/apache/coyote/http2/AbstractNonZeroStream.java | 14 +------------- java/org/apache/coyote/http2/Stream.java | 12 ------------ 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/java/org/apache/coyote/http2/AbstractNonZeroStream.java b/java/org/apache/coyote/http2/AbstractNonZeroStream.java index 6dc7c19077..efaf73bfe3 100644 --- a/java/org/apache/coyote/http2/AbstractNonZeroStream.java +++ b/java/org/apache/coyote/http2/AbstractNonZeroStream.java @@ -61,19 +61,6 @@ abstract class AbstractNonZeroStream extends AbstractStream { } - /** - * Obtain the ByteBuffer to store DATA frame payload data for this stream that has been received from the client. - * - * @return {@code null} if the DATA frame payload can be swallowed, or a ByteBuffer with at least enough space - * remaining for the current flow control window for stream data from the client. - * - * @deprecated Unused. Will be removed in Tomcat 11. - */ - @Deprecated - ByteBuffer getInputByteBuffer() { - return getInputByteBuffer(true); - } - /** * Obtain the ByteBuffer to store DATA frame payload data for this stream that has been received from the client. * @@ -82,6 +69,7 @@ abstract class AbstractNonZeroStream extends AbstractStream { */ abstract ByteBuffer getInputByteBuffer(boolean create); + /** * Notify that some data has been received. * diff --git a/java/org/apache/coyote/http2/Stream.java b/java/org/apache/coyote/http2/Stream.java index 6d2a67b969..9fe058d57e 100644 --- a/java/org/apache/coyote/http2/Stream.java +++ b/java/org/apache/coyote/http2/Stream.java @@ -1100,18 +1100,6 @@ class Stream extends AbstractNonZeroStream implements HeaderEmitter { abstract void notifyEof(); - /** - * Return, creating if necessary, the input buffer. - * - * @return The input buffer - * - * @deprecated Unused. Will be removed in Tomcat 11. - */ - @Deprecated - ByteBuffer getInBuffer() { - return getInBuffer(true); - } - abstract ByteBuffer getInBuffer(boolean create); abstract void onDataAvailable() throws IOException; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org