setCacheNode wasn't necessary after all, instead overwrote setNode in ESUser

This commit is contained in:
hns 2001-01-05 15:31:10 +00:00
parent d412a6c5f0
commit c969278494
4 changed files with 9 additions and 9 deletions

View file

@ -61,6 +61,15 @@ public class ESUser extends ESNode {
cacheWrapper = new ESNode (cache, eval);
}
public void setNode (INode node) {
if (node != null) {
this.node = node;
eval.objectcache.put (node, this);
// we don't take over the transient cache from the node,
// because we always use the one from the user object.
}
}
public String toString () {
return ("UserNode "+node.getNameOrID ());

View file

@ -47,7 +47,6 @@ public interface INode {
public String getPrototype ();
public void setPrototype (String prototype);
public INode getCacheNode ();
public void setCacheNode (INode cache);
/**
* node-related methods

View file

@ -768,10 +768,6 @@ public class Node implements INode, Serializable {
return cacheNode;
}
public synchronized void setCacheNode (INode cache) {
this.cacheNode = cache;
}
}

View file

@ -1691,10 +1691,6 @@ public class Node implements INode, Serializable {
return cacheNode;
}
public synchronized void setCacheNode (INode cache) {
this.cacheNode = cache;
}
// walk down node path to the first non-virtual node and return its id.
// limit max depth to 3, since there shouldn't be more then 2 layers of virtual nodes.
public String getNonVirtualHomeID () {