diff src/luan/interp/LuanStateImpl.java @ 88:6ca02b188dba

add LuanBit to clean up code; add repr(); git-svn-id: https://luan-java.googlecode.com/svn/trunk@89 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Wed, 27 Feb 2013 23:50:32 +0000
parents 6db8f286fa6c
children 3c404a296995
line wrap: on
line diff
--- a/src/luan/interp/LuanStateImpl.java	Wed Feb 27 19:42:09 2013 +0000
+++ b/src/luan/interp/LuanStateImpl.java	Wed Feb 27 23:50:32 2013 +0000
@@ -132,13 +132,4 @@
 		return (LuanTable)frame.closure.upValues()[0].get();
 	}
 
-
-	final Object arithmetic(LuanElement el,String op,Object o1,Object o2) throws LuanException {
-		LuanFunction fn = getBinHandler(el,op,o1,o2);
-		if( fn != null )
-			return Luan.first(call(fn,el,op,o1,o2));
-		String type = Luan.toNumber(o1)==null ? Luan.type(o1) : Luan.type(o2);
-		throw new LuanException(this,el,"attempt to perform arithmetic on a "+type+" value");
-	}
-
 }