Remove dead code
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 2 Jul 2011 21:52:35 +0000 (21:52 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 2 Jul 2011 21:52:35 +0000 (21:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1142321 13f79535-47bb-0310-9956-ffa450edef68

test/org/apache/tomcat/util/net/TestXxxEndpoint.java

index ea95126..4b98ab6 100644 (file)
@@ -64,12 +64,8 @@ public class TestXxxEndpoint extends TomcatBaseTest {
         // 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;