changeset 922:03f39c8abd6b

remove isResumed()
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 09 Oct 2016 18:15:24 -0600
parents a5af9ee7cf91
children 52d8b5c29d8e
files src/org/eclipse/jetty/continuation/Continuation.java src/org/eclipse/jetty/server/AsyncContinuation.java
diffstat 2 files changed, 2 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/eclipse/jetty/continuation/Continuation.java	Sun Oct 09 18:09:50 2016 -0600
+++ b/src/org/eclipse/jetty/continuation/Continuation.java	Sun Oct 09 18:15:24 2016 -0600
@@ -321,7 +321,7 @@
 	 *         {@link #resume()}. Returns false after any subsequent call to
 	 *         suspend
 	 */
-	boolean isResumed();
+//	boolean isResumed();
 
 	/* ------------------------------------------------------------ */
 	/**
--- a/src/org/eclipse/jetty/server/AsyncContinuation.java	Sun Oct 09 18:09:50 2016 -0600
+++ b/src/org/eclipse/jetty/server/AsyncContinuation.java	Sun Oct 09 18:15:24 2016 -0600
@@ -82,7 +82,6 @@
 	/* ------------------------------------------------------------ */
 	private int _state;
 	private boolean _initial;
-	private boolean _resumed;
 	private volatile boolean _responseWrapped;
 	private long _timeoutMs=DEFAULT_TIMEOUT;
 	private AsyncEventState _event;
@@ -260,8 +259,7 @@
 											(_state==__UNCOMPLETED)?"UNCOMPLETED":
 												(_state==__COMPLETED)?"COMPLETE":
 													("UNKNOWN?"+_state))+
-			(_initial?",initial":"")+
-			(_resumed?",resumed":"");
+			(_initial?",initial":"");
 		}
 	}
 
@@ -465,7 +463,6 @@
 					_state=__IDLE;
 			}
 			_initial = true;
-			_resumed=false;
 			_responseWrapped=false;
 			cancelTimeout();
 			_timeoutMs=DEFAULT_TIMEOUT;
@@ -665,18 +662,6 @@
 
 	/* ------------------------------------------------------------ */
 	/**
-	 * @see Continuation#isResumed()
-	 */
-	public boolean isResumed()
-	{
-		synchronized (this)
-		{
-			return _resumed;
-		}
-	}
-
-	/* ------------------------------------------------------------ */
-	/**
 	 * @see Continuation#resume()
 	 */
 	public void resume()