You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2013/11/18 14:42:48 UTC

svn commit: r1543025 - /tomcat/trunk/java/org/apache/catalina/core/StandardContext.java

Author: markt
Date: Mon Nov 18 13:42:48 2013
New Revision: 1543025

URL: http://svn.apache.org/r1543025
Log:
Remove unused method

Modified:
    tomcat/trunk/java/org/apache/catalina/core/StandardContext.java

Modified: tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardContext.java?rev=1543025&r1=1543024&r2=1543025&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardContext.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardContext.java Mon Nov 18 13:42:48 2013
@@ -5836,34 +5836,6 @@ public class StandardContext extends Con
     }
 
 
-
-    /**
-     * Get base path.
-     */
-    protected String getBasePath() {
-        String docBase = null;
-        Container container = this;
-        while (container != null) {
-            if (container instanceof Host)
-                break;
-            container = container.getParent();
-        }
-        File file = new File(getDocBase());
-        if (!file.isAbsolute()) {
-            if (container == null) {
-                docBase = (new File(getCatalinaBase(), getDocBase())).getPath();
-            } else {
-                // Use the "appBase" property of this container
-                file = ((Host) container).getAppBaseFile();
-                docBase = (new File(file, getDocBase())).getPath();
-            }
-        } else {
-            docBase = file.getPath();
-        }
-        return docBase;
-    }
-
-
     /**
      * Get naming context full name.
      */



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