You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by kk...@apache.org on 2014/06/05 16:16:34 UTC

svn commit: r1600671 - /tomcat/tc7.0.x/trunk/test/org/apache/catalina/websocket/TestWebSocket.java

Author: kkolinko
Date: Thu Jun  5 14:16:34 2014
New Revision: 1600671

URL: http://svn.apache.org/r1600671
Log:
Remove unused code from a test class.

Modified:
    tomcat/tc7.0.x/trunk/test/org/apache/catalina/websocket/TestWebSocket.java

Modified: tomcat/tc7.0.x/trunk/test/org/apache/catalina/websocket/TestWebSocket.java
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/test/org/apache/catalina/websocket/TestWebSocket.java?rev=1600671&r1=1600670&r2=1600671&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/test/org/apache/catalina/websocket/TestWebSocket.java (original)
+++ tomcat/tc7.0.x/trunk/test/org/apache/catalina/websocket/TestWebSocket.java Thu Jun  5 14:16:34 2014
@@ -466,23 +466,16 @@ public class TestWebSocket extends Tomca
          */
         private class CustomReader {
             private InputStream is;
-            private String encoding;
             private boolean markSupported;
             private B2CConverter b2c;
 
             public CustomReader(InputStream is, String encoding) throws IOException {
                 this.is = new BufferedInputStream(is);
-                this.encoding = encoding;
                 markSupported = is.markSupported();
                 b2c = new B2CConverter(encoding);
             }
 
-            public String getEncoding() {
-                return encoding;
-            }
-
             public void setEncoding(String encoding) throws IOException {
-                this.encoding = encoding;
                 b2c = new B2CConverter(encoding);
             }
 
@@ -506,7 +499,6 @@ public class TestWebSocket extends Tomca
             public String readLine() throws IOException {
                 ByteChunk bc = new ByteChunk(125);
                 CharChunk cc = new CharChunk(125);
-                char c;
                 int i = is.read();
                 int read = 0;
                 while (i != -1) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org