Author: manik.surtani(a)jboss.com
Date: 2007-11-29 12:10:28 -0500 (Thu, 29 Nov 2007)
New Revision: 4791
Modified:
core/trunk/src/main/java/org/jboss/cache/util/CachePrinter.java
Log:
Cleaned up some crap that snuck in to SVN
Modified: core/trunk/src/main/java/org/jboss/cache/util/CachePrinter.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/util/CachePrinter.java 2007-11-29 17:06:22
UTC (rev 4790)
+++ core/trunk/src/main/java/org/jboss/cache/util/CachePrinter.java 2007-11-29 17:10:28
UTC (rev 4791)
@@ -3,7 +3,6 @@
import org.jboss.cache.Cache;
import org.jboss.cache.CacheImpl;
import org.jboss.cache.CacheSPI;
-import org.jboss.cache.factories.injection.ComponentFactory;
import org.jboss.cache.interceptors.Interceptor;
/**
@@ -56,27 +55,4 @@
}
return b.toString();
}
-
- public static String printDependencyGraph(ComponentFactory.Component c)
- {
- StringBuilder b = new StringBuilder();
- b.append("Dependency graph of component " + c.getType());
- b.append("\n");
- addNode(b, 0, c);
- return b.toString();
- }
-
- private static void addNode(StringBuilder b, int level, ComponentFactory.Component c)
- {
- addIndent(b, level);
- b.append("--> ");
- b.append(c.getType().getName());
- b.append("\n");
- for (ComponentFactory.Component d : c.getDependencies()) addNode(b, level + 3, d);
- }
-
- private static void addIndent(StringBuilder b, int level)
- {
- for (int i=0; i<level; i++) b.append(" ");
- }
}