You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by rf...@apache.org on 2008/02/25 22:41:00 UTC
svn commit: r631008 -
/lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeImpl.java
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 {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org