diff core/src/luan/impl/LtExpr.java @ 645:859c0dedc8b6

remove LuanSource
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 29 Mar 2016 18:09:51 -0600
parents 4723d22062ce
children 8e8c30b72e9b
line wrap: on
line diff
--- a/core/src/luan/impl/LtExpr.java	Tue Mar 29 13:53:01 2016 -0600
+++ b/core/src/luan/impl/LtExpr.java	Tue Mar 29 18:09:51 2016 -0600
@@ -3,23 +3,17 @@
 import luan.Luan;
 import luan.LuanFunction;
 import luan.LuanException;
-import luan.LuanElement;
 
 
 final class LtExpr extends BinaryOpExpr {
 
-	LtExpr(LuanElement el,Expr op1,Expr op2) {
-		super(el,op1,op2);
+	LtExpr(Expr op1,Expr op2) {
+		super(op1,op2);
 	}
 
 	@Override public Object eval(LuanStateImpl luan) throws LuanException {
 		Object o1 = op1.eval(luan);
 		Object o2 = op2.eval(luan);
-		luan.push(el,null);
-		try {
-			return luan.isLessThan(o1,o2);
-		} finally {
-			luan.pop();
-		}
+		return luan.isLessThan(o1,o2);
 	}
 }