You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2006/11/16 17:28:43 UTC
svn commit: r475798 -
/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITreeOldNode.java
Author: lofwyr
Date: Thu Nov 16 08:28:43 2006
New Revision: 475798
URL: http://svn.apache.org/viewvc?view=rev&rev=475798
Log:
remove unused code
Modified:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITreeOldNode.java
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITreeOldNode.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITreeOldNode.java?view=diff&rev=475798&r1=475797&r2=475798
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITreeOldNode.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITreeOldNode.java Thu Nov 16 08:28:43 2006
@@ -189,27 +189,4 @@
// nothig to update for treeNode's
}
- protected Object checkValue(Object currentValue) {
-
- if (currentValue == null) {
- LOG.error("currentValue is null");
- currentValue = emergencyValue();
- }
-
- if (!(currentValue instanceof MutableTreeNode)) {
- LOG.error("currentValue is not valid: '" + currentValue + "'");
- LOG.error(
- "currentValue is not of type '"
- + MutableTreeNode.class.getName() + "': '"
- + currentValue.getClass().getName() + "'");
- currentValue = emergencyValue();
- }
-
- return currentValue;
- }
-
- protected Object emergencyValue() {
- return new DefaultMutableTreeNode("Default");
- }
-
}