tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r370301 - /tomcat/container/branches/tc4.1.x/catalina/src/share/org/apache/catalina/core/StandardServer.java
Date Wed, 18 Jan 2006 23:15:16 GMT
Author: markt
Date: Wed Jan 18 15:15:11 2006
New Revision: 370301

URL: http://svn.apache.org/viewcvs?rev=370301&view=rev
Log:
Remove unused private method

Modified:
    tomcat/container/branches/tc4.1.x/catalina/src/share/org/apache/catalina/core/StandardServer.java

Modified: tomcat/container/branches/tc4.1.x/catalina/src/share/org/apache/catalina/core/StandardServer.java
URL: http://svn.apache.org/viewcvs/tomcat/container/branches/tc4.1.x/catalina/src/share/org/apache/catalina/core/StandardServer.java?rev=370301&r1=370300&r2=370301&view=diff
==============================================================================
--- tomcat/container/branches/tc4.1.x/catalina/src/share/org/apache/catalina/core/StandardServer.java
(original)
+++ tomcat/container/branches/tc4.1.x/catalina/src/share/org/apache/catalina/core/StandardServer.java
Wed Jan 18 15:15:11 2006
@@ -2024,42 +2024,6 @@
 
 
     /**
-     * Return <code>true</code> if the specified client and server addresses
-     * are the same.  This method works around a bug in the IBM 1.1.8 JVM on
-     * Linux, where the address bytes are returned reversed in some
-     * circumstances.
-     *
-     * @param server The server's InetAddress
-     * @param client The client's InetAddress
-     */
-    private boolean isSameAddress(InetAddress server, InetAddress client) {
-
-        // Compare the byte array versions of the two addresses
-        byte serverAddr[] = server.getAddress();
-        byte clientAddr[] = client.getAddress();
-        if (serverAddr.length != clientAddr.length)
-            return (false);
-        boolean match = true;
-        for (int i = 0; i < serverAddr.length; i++) {
-            if (serverAddr[i] != clientAddr[i]) {
-                match = false;
-                break;
-            }
-        }
-        if (match)
-            return (true);
-
-        // Compare the reversed form of the two addresses
-        for (int i = 0; i < serverAddr.length; i++) {
-            if (serverAddr[i] != clientAddr[(serverAddr.length-1)-i])
-                return (false);
-        }
-        return (true);
-
-    }
-
-
-    /**
      * Return true if naming should be used.
      */
     private boolean isUseNaming() {



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


Mime
View raw message