Removed obsolete HopObject.link() function.

This commit is contained in:
hns 2003-06-06 13:48:22 +00:00
parent 98839ca296
commit a380be0ab0

View file

@ -107,7 +107,6 @@ public final class HopExtension {
esNodePrototype.putHiddenProperty("addAt", new NodeAddAt("addAt", evaluator, fp));
esNodePrototype.putHiddenProperty("remove",
new NodeRemove("remove", evaluator, fp));
esNodePrototype.putHiddenProperty("link", new NodeLink("link", evaluator, fp));
esNodePrototype.putHiddenProperty("list", new NodeList("list", evaluator, fp));
esNodePrototype.putHiddenProperty("set", new NodeSet("set", evaluator, fp));
esNodePrototype.putHiddenProperty("get", new NodeGet("get", evaluator, fp));
@ -270,19 +269,6 @@ public final class HopExtension {
}
}
class NodeLink extends BuiltinFunctionObject {
NodeLink(String name, Evaluator evaluator, FunctionPrototype fp) {
super(fp, evaluator, name, 1);
}
public ESValue callFunction(ESObject thisObject, ESValue[] arguments)
throws EcmaScriptException {
ESNode node = (ESNode) thisObject;
return ESBoolean.makeBoolean(node.link(arguments));
}
}
class NodeList extends BuiltinFunctionObject {
NodeList(String name, Evaluator evaluator, FunctionPrototype fp) {
super(fp, evaluator, name, 0);