changeset 444:e45bcaf6f5fe

remove assert_nil
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 04 May 2015 14:59:01 -0600
parents bf5e62a9090c
children cc7d246bda2a
files core/src/luan/modules/BasicLuan.java core/src/luan/modules/Luan.luan
diffstat 2 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
diff -r bf5e62a9090c -r e45bcaf6f5fe core/src/luan/modules/BasicLuan.java
--- a/core/src/luan/modules/BasicLuan.java	Mon May 04 14:55:51 2015 -0600
+++ b/core/src/luan/modules/BasicLuan.java	Mon May 04 14:59:01 2015 -0600
@@ -134,12 +134,6 @@
 		return v;
 	}
 
-	public static Object assert_nil(LuanState luan,Object v) throws LuanException {
-		if( v != null )
-			throw luan.exception("bad argument #1 (nil expected, got "+Luan.type(v)+")");
-		return v;
-	}
-
 	public static int assert_integer(LuanState luan,int v) throws LuanException {
 		return v;
 	}
diff -r bf5e62a9090c -r e45bcaf6f5fe core/src/luan/modules/Luan.luan
--- a/core/src/luan/modules/Luan.luan	Mon May 04 14:55:51 2015 -0600
+++ b/core/src/luan/modules/Luan.luan	Mon May 04 14:59:01 2015 -0600
@@ -2,7 +2,6 @@
 local BasicLuan = require "java:luan.modules.BasicLuan"
 
 assert_boolean = BasicLuan.assert_boolean
-assert_nil = BasicLuan.assert_nil
 assert_number = BasicLuan.assert_number
 assert_string = BasicLuan.assert_string
 assert_table = BasicLuan.assert_table