tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1142321 - /tomcat/trunk/test/org/apache/tomcat/util/net/TestXxxEndpoint.java
Date Sat, 02 Jul 2011 21:52:36 GMT
Author: markt
Date: Sat Jul  2 21:52:35 2011
New Revision: 1142321

URL: http://svn.apache.org/viewvc?rev=1142321&view=rev
Log:
Remove dead code

Modified:
    tomcat/trunk/test/org/apache/tomcat/util/net/TestXxxEndpoint.java

Modified: tomcat/trunk/test/org/apache/tomcat/util/net/TestXxxEndpoint.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/util/net/TestXxxEndpoint.java?rev=1142321&r1=1142320&r2=1142321&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/tomcat/util/net/TestXxxEndpoint.java (original)
+++ tomcat/trunk/test/org/apache/tomcat/util/net/TestXxxEndpoint.java Sat Jul  2 21:52:35
2011
@@ -64,12 +64,8 @@ public class TestXxxEndpoint extends Tom
         // Create the APR address that will be bound
         int family = Socket.APR_INET;
         if (Library.APR_HAVE_IPV6) {
-            if (address == null) {
-                if (!OS.IS_BSD && !OS.IS_WIN32 && !OS.IS_WIN64)
-                    family = Socket.APR_UNSPEC;
-            } else if (address.indexOf(':') >= 0) {
+            if (!OS.IS_BSD && !OS.IS_WIN32 && !OS.IS_WIN64)
                 family = Socket.APR_UNSPEC;
-            }
          }
 
         long inetAddress = 0;



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


Mime
View raw message