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 f59c112ff0dc0b69f234b5f45c858550d87bd1ac Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Dec 8 19:49:10 2022 +0000 Remove unused code --- .../apache/coyote/http2/AbstractNonZeroStream.java | 43 ---------------------- 1 file changed, 43 deletions(-) diff --git a/java/org/apache/coyote/http2/AbstractNonZeroStream.java b/java/org/apache/coyote/http2/AbstractNonZeroStream.java index 5a9c3e3a48..f6a00e20e0 100644 --- a/java/org/apache/coyote/http2/AbstractNonZeroStream.java +++ b/java/org/apache/coyote/http2/AbstractNonZeroStream.java @@ -18,19 +18,12 @@ package org.apache.coyote.http2; import java.nio.ByteBuffer; -import org.apache.juli.logging.Log; -import org.apache.juli.logging.LogFactory; -import org.apache.tomcat.util.res.StringManager; - /** * Base class for all streams other than stream 0, the connection. Primarily * provides functionality shared between full Stream and RecycledStream. */ abstract class AbstractNonZeroStream extends AbstractStream { - private static final Log log = LogFactory.getLog(AbstractNonZeroStream.class); - private static final StringManager sm = StringManager.getManager(AbstractNonZeroStream.class); - protected static final ByteBuffer ZERO_LENGTH_BYTEBUFFER = ByteBuffer.allocate(0); protected final StreamStateMachine state; @@ -48,42 +41,6 @@ abstract class AbstractNonZeroStream extends AbstractStream { } - /* - * General method used when reprioritising a stream and care needs to be - * taken not to create circular references. - * - * Changes to the priority tree need to be synchronized at the connection - * level. This is the caller's responsibility. - */ - final void rePrioritise(AbstractStream parent, boolean exclusive, int weight) { - if (log.isDebugEnabled()) { - log.debug(sm.getString("stream.reprioritisation.debug", - getConnectionId(), getIdAsString(), Boolean.toString(exclusive), - parent.getIdAsString(), Integer.toString(weight))); - } - - // TODO - } - - - /* - * Used when removing closed streams from the tree and we know there is no - * need to check for circular references. - * - * Changes to the priority tree need to be synchronized at the connection - * level. This is the caller's responsibility. - */ - final void rePrioritise(AbstractStream parent, int weight) { - if (log.isDebugEnabled()) { - log.debug(sm.getString("stream.reprioritisation.debug", - getConnectionId(), getIdAsString(), Boolean.FALSE, - parent.getIdAsString(), Integer.toString(weight))); - } - - // TODO - } - - final boolean isClosedFinal() { return state.isClosedFinal(); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org