diff src/org/eclipse/jetty/server/handler/ContextHandler.java @ 833:83765eb09bef

remove ContextHandlerCollection
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 16 Sep 2016 00:41:20 -0600
parents 7c737c376bc3
children 22a4e93ed20e
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/handler/ContextHandler.java	Fri Sep 16 00:35:35 2016 -0600
+++ b/src/org/eclipse/jetty/server/handler/ContextHandler.java	Fri Sep 16 00:41:20 2016 -0600
@@ -1282,13 +1282,6 @@
 		if (contextPath != null && contextPath.length() > 1 && contextPath.endsWith("/"))
 			throw new IllegalArgumentException("ends with /");
 		_contextPath = contextPath;
-
-		if (getServer() != null && (getServer().isStarting() || getServer().isStarted()))
-		{
-			Handler[] contextCollections = getServer().getChildHandlersByClass(ContextHandlerCollection.class);
-			for (int h = 0; contextCollections != null && h < contextCollections.length; h++)
-				((ContextHandlerCollection)contextCollections[h]).mapContexts();
-		}
 	}
 
 	/* ------------------------------------------------------------ */