diff core/src/luan/LuanState.java @ 574:6cc2f047019b

remove LuanState.call()
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 13 Jul 2015 12:31:53 -0600
parents f1601a4ce1aa
children 7c3ad6db8ac3
line wrap: on
line diff
--- a/core/src/luan/LuanState.java	Sun Jul 12 23:04:47 2015 -0600
+++ b/core/src/luan/LuanState.java	Mon Jul 13 12:31:53 2015 -0600
@@ -60,7 +60,7 @@
 
 	public final Object eval(String cmd,LuanTable env) throws LuanException {
 		LuanFunction fn = BasicLuan.load(this,cmd,"eval",env,true);
-		return call(fn);
+		return fn.call(this);
 	}
 
 	public final LuanBit bit(LuanElement el) {
@@ -75,22 +75,6 @@
 		return JAVA.exception(msg);
 	}
 
-	public Object call(LuanFunction fn) throws LuanException {
-		return call(fn,null,LuanFunction.NOTHING);
-	}
-
-	public Object call(LuanFunction fn,String fnName) throws LuanException {
-		return call(fn,fnName,LuanFunction.NOTHING);
-	}
-
-	public Object call(LuanFunction fn,Object[] args) throws LuanException {
-		return call(fn,null,args);
-	}
-
-	public Object call(LuanFunction fn,String fnName,Object[] args) throws LuanException {
-		return JAVA.call(fn,fnName,args);
-	}
-
 	public Boolean checkBoolean(Object obj) throws LuanException {
 		return JAVA.checkBoolean(obj);
 	}