From: markt Date: Sat, 2 Jul 2011 21:52:35 +0000 (+0000) Subject: Remove dead code X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3bcd6a6d4f5a5e86975a07d7bb92d7faa583f96f;p=tomcat7.0 Remove dead code git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1142321 13f79535-47bb-0310-9956-ffa450edef68 --- 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;