You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2016/10/07 20:05:11 UTC
svn commit: r1763825 - /tomcat/trunk/java/org/apache/coyote/http2/Stream.java
Author: markt
Date: Fri Oct 7 20:05:11 2016
New Revision: 1763825
URL: http://svn.apache.org/viewvc?rev=1763825&view=rev
Log:
Remove unused code identified by UCdetector
Modified:
tomcat/trunk/java/org/apache/coyote/http2/Stream.java
Modified: tomcat/trunk/java/org/apache/coyote/http2/Stream.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/Stream.java?rev=1763825&r1=1763824&r2=1763825&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http2/Stream.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http2/Stream.java Fri Oct 7 20:05:11 2016
@@ -311,21 +311,6 @@ public class Stream extends AbstractStre
}
- /**
- * Marks the stream as reset. This method will not change the stream state
- * if:
- * <ul>
- * <li>The stream is already reset</li>
- * <li>The stream is already closed</li>
- *
- * @throws IllegalStateException If the stream is in a state that does not
- * permit resets
- */
- void sendReset() {
- state.sendReset();
- }
-
-
void sentPushPromise() {
state.sentPushPromise();
}
@@ -441,7 +426,6 @@ public class Stream extends AbstractStre
private volatile long written = 0;
private volatile boolean closed = false;
private volatile boolean endOfStreamSent = false;
- private volatile boolean writeInterest = false;
/* The write methods are synchronized to ensure that only one thread at
* a time is able to access the buffer. Without this protection, a
@@ -524,16 +508,6 @@ public class Stream extends AbstractStre
if (getWindowSize() > 0 && handler.getWindowSize() > 0) {
return true;
} else {
- writeInterest = true;
- return false;
- }
- }
-
- synchronized boolean isRegisteredForWrite() {
- if (writeInterest) {
- writeInterest = false;
- return true;
- } else {
return false;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org