Author: manik.surtani(a)jboss.com
Date: 2008-02-05 15:03:32 -0500 (Tue, 05 Feb 2008)
New Revision: 5299
Modified:
core/trunk/src/main/java/org/jboss/cache/NodeFactory.java
Log:
Removed unnecessary exception
Modified: core/trunk/src/main/java/org/jboss/cache/NodeFactory.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/NodeFactory.java 2008-02-05 19:08:13 UTC (rev
5298)
+++ core/trunk/src/main/java/org/jboss/cache/NodeFactory.java 2008-02-05 20:03:32 UTC (rev
5299)
@@ -105,14 +105,6 @@
public Node<K, V> createNodeOfType(Node<K, V> template, Object childName,
Node<K, V> parent, Map<K, V> data)
{
- if (template instanceof WorkspaceNode)
- {
-// NodeSPI<K, V> dataNodeParent = ((WorkspaceNode<K, V>)
parent).getNode();
-// TransactionWorkspace workspace = ((WorkspaceNode)
template).getTransactionWorkspace();
-// return createWorkspaceNode(dataNodeParent, workspace);
- throw new RuntimeException("DEPRECATED! Use createWorkspaceNode() to
create workspace nodes!");
- }
-
// not a workspace node.
return createDataNode(childName, new Fqn(parent.getFqn(), childName),
(NodeSPI<K, V>) parent, data, false);
}