From 3bcd6a6d4f5a5e86975a07d7bb92d7faa583f96f Mon Sep 17 00:00:00 2001 From: markt Date: Sat, 2 Jul 2011 21:52:35 +0000 Subject: [PATCH] Remove dead code 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 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/org/apache/tomcat/util/net/TestXxxEndpoint.java b/test/org/apache/tomcat/util/net/TestXxxEndpoint.java index ea9512663..4b98ab6bb 100644 --- a/test/org/apache/tomcat/util/net/TestXxxEndpoint.java +++ b/test/org/apache/tomcat/util/net/TestXxxEndpoint.java @@ -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; -- 2.11.0