Remove unused code.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 10 Jul 2011 11:02:22 +0000 (11:02 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 10 Jul 2011 11:02:22 +0000 (11:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1144823 13f79535-47bb-0310-9956-ffa450edef68

test/org/apache/catalina/mbeans/TestRegistration.java

index 950ea12..a380b8e 100644 (file)
@@ -59,7 +59,7 @@ public class TestRegistration extends TomcatBaseTest {
         };
     }
 
-    private String[] optionalMBeanNames(String host, String context) {
+    private String[] optionalMBeanNames(String host) {
         if (isAccessLogEnabled()) {
             return new String[] {
                 "Tomcat:type=Valve,host=" + host + ",name=AccessLogValve",
@@ -141,7 +141,7 @@ public class TestRegistration extends TomcatBaseTest {
         expected.addAll(Arrays.asList(hostMBeanNames("localhost")));
         expected.addAll(Arrays.asList(contextMBeanNames("localhost", contextName)));
         expected.addAll(Arrays.asList(connectorMBeanNames(Integer.toString(getPort()), protocol)));
-        expected.addAll(Arrays.asList(optionalMBeanNames("localhost", contextName)));
+        expected.addAll(Arrays.asList(optionalMBeanNames("localhost")));
 
         // Did we find all expected MBeans?
         ArrayList<String> missing = new ArrayList<String>(expected);