Author: rfrovarp
Date: Mon Feb 25 13:40:57 2008
New Revision: 631008
URL: http://svn.apache.org/viewvc?rev=631008&view=rev
Log:
Removed dead code. Was introduced dead in r507914
Modified:
lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeImpl.java
Modified: lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeImpl.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeImpl.java?rev=631008&r1=631007&r2=631008&view=diff
==============================================================================
--- lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeImpl.java (original)
+++ lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeImpl.java Mon Feb 25 13:40:57 2008
@@ -18,7 +18,6 @@
package org.apache.lenya.cms.site.tree2;
import java.util.HashMap;
-import java.util.Iterator;
import java.util.Map;
import java.util.Set;
@@ -127,7 +126,6 @@
} catch (Exception e) {
throw new RuntimeException(e);
}
- checkInvariants();
}
protected void reset() {
@@ -368,32 +366,6 @@
throw new SiteException("No link for [" + key + "]");
}
return (Link) getUuidLanguage2Link().get(key);
- }
-
- protected void checkInvariants() {
- if (true) {
- return;
- }
- for (Iterator paths = this.path2node.keySet().iterator(); paths.hasNext();) {
- String path = (String) paths.next();
- SiteNode node = (SiteNode) this.path2node.get(path);
- String uuid = node.getUuid();
- if (uuid != null) {
- String[] langs = node.getLanguages();
- for (int i = 0; i < langs.length; i++) {
- String key = getKey(uuid, langs[i]);
- Assert.isTrue("contains link for [" + key + "]", this.uuidLanguage2link
- .containsKey(key));
- }
- }
- }
- for (Iterator keys = this.uuidLanguage2link.keySet().iterator(); keys.hasNext();) {
- String key = (String) keys.next();
- Link link = (Link) this.uuidLanguage2link.get(key);
- Assert.isTrue("contains path for [" + key + "]", this.path2node.containsKey(link
- .getNode().getPath()));
- }
-
}
public SiteNode getNode(String path) throws SiteException {
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.