Remove unused welcome file handling code
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 8 Dec 2010 11:36:49 +0000 (11:36 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 8 Dec 2010 11:36:49 +0000 (11:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1043364 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/StandardContext.java

index a624546..5bc5cd3 100644 (file)
@@ -3021,7 +3021,6 @@ public class StandardContext extends ContainerBase
             results[welcomeFiles.length] = name;
             welcomeFiles = results;
         }
-        postWelcomeFiles();
         if(this.getState().equals(LifecycleState.STARTED))
             fireContainerEvent(ADD_WELCOME_FILE_EVENT, name);
     }
@@ -4115,7 +4114,6 @@ public class StandardContext extends ContainerBase
         }
 
         // Inform interested listeners
-        postWelcomeFiles();
         if(this.getState().equals(LifecycleState.STARTED))
             fireContainerEvent(REMOVE_WELCOME_FILE_EVENT, name);
 
@@ -4976,10 +4974,6 @@ public class StandardContext extends ContainerBase
                         JarScanner.class.getName(), getJarScanner());
             }
 
-            if (ok) {
-                postWelcomeFiles();
-            }
-            
             // Set up the context init params
             mergeParameters();
 
@@ -5655,17 +5649,6 @@ public class StandardContext extends ContainerBase
     }
 
 
-    /**
-     * Post a copy of our current list of welcome files as a servlet context
-     * attribute, so that the default servlet can find them.
-     */
-    private void postWelcomeFiles() {
-
-        getServletContext().setAttribute("org.apache.catalina.WELCOME_FILES",
-                                         welcomeFiles);
-
-    }
-
     public String getHostname() {
         Container parentHost = getParent();
         if (parentHost != null) {