[jbosscache-commits] JBoss Cache SVN: r6354 - core/trunk/src/main/java/org/jboss/cache.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Mon Jul 21 20:54:02 EDT 2008
Author: manik.surtani at jboss.com
Date: 2008-07-21 20:54:02 -0400 (Mon, 21 Jul 2008)
New Revision: 6354
Modified:
core/trunk/src/main/java/org/jboss/cache/UnversionedNode.java
Log:
Removed unused methods
Modified: core/trunk/src/main/java/org/jboss/cache/UnversionedNode.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/UnversionedNode.java 2008-07-22 00:39:52 UTC (rev 6353)
+++ core/trunk/src/main/java/org/jboss/cache/UnversionedNode.java 2008-07-22 00:54:02 UTC (rev 6354)
@@ -79,7 +79,6 @@
public UnversionedNode(Fqn fqn, CacheSPI<K, V> cache)
{
-// if (cache == null) throw new IllegalArgumentException("no cache init for " + fqn);
initFlags();
this.cache = cache;
this.fqn = fqn;
@@ -180,18 +179,6 @@
setFlag(CHILDREN_LOADED, childrenLoaded);
}
- private void assertValid()
- {
- if (!isValid())
- throw new NodeNotValidException("Node " + getFqn() + " is not valid. Perhaps it has been moved or removed.");
- }
-
- public V get(K key)
- {
- assertValid();
- return cache.get(getFqn(), key);
- }
-
public V getDirect(K key)
{
return data == null ? null : data.get(key);
@@ -209,12 +196,6 @@
return data;
}
- public V put(K key, V value)
- {
- assertValid();
- return cache.put(getFqn(), key, value);
- }
-
public V putDirect(K key, V value)
{
if (data == null) initDataMap();
@@ -267,12 +248,6 @@
return child;
}
- public V remove(K key)
- {
- assertValid();
- return cache.remove(getFqn(), key);
- }
-
public V removeDirect(K key)
{
if (data == null) return null;
@@ -493,12 +468,6 @@
}
}
- public void putAll(Map<K, V> data)
- {
- assertValid();
- cache.put(fqn, data);
- }
-
public void putAllDirect(Map<K, V> data)
{
if (data != null)
@@ -552,14 +521,6 @@
/**
* Returns the name of this node.
*/
- private Object getName()
- {
- return fqn.getLastElement();
- }
-
- /**
- * Returns the name of this node.
- */
public Fqn getFqn()
{
return fqn;
@@ -644,7 +605,7 @@
{
sb.append(Fqn.SEPARATOR);
}
- sb.append(getName());
+ sb.append(fqn.getLastElement());
sb.append(" ");
sb.append(data);
if (children != null)
More information about the jbosscache-commits
mailing list