diff src/luan/modules/BasicLuan.java @ 1164:1f9d34a6f308

remove assertions
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 07 Feb 2018 17:36:38 -0700
parents bfbd5401353a
children 7ef40e1923b7
line wrap: on
line diff
--- a/src/luan/modules/BasicLuan.java	Tue Feb 06 22:04:47 2018 -0700
+++ b/src/luan/modules/BasicLuan.java	Wed Feb 07 17:36:38 2018 -0700
@@ -113,25 +113,6 @@
 		return tbl;
 	}
 
-	public static String assert_string(String v) throws LuanException {
-		Utils.checkNotNull(v);
-		return v;
-	}
-
-	public static Number assert_number(Number v) throws LuanException {
-		Utils.checkNotNull(v);
-		return v;
-	}
-
-	public static LuanTable assert_table(LuanTable v) throws LuanException {
-		Utils.checkNotNull(v);
-		return v;
-	}
-
-	public static boolean assert_boolean(boolean v) throws LuanException {
-		return v;
-	}
-
 	public static int assert_integer(int v) throws LuanException {
 		return v;
 	}
@@ -148,16 +129,6 @@
 		return v;
 	}
 
-	@LuanMethod public static byte[] assert_binary(byte[] v) throws LuanException {
-		Utils.checkNotNull(v);
-		return v;
-	}
-
-	public static LuanFunction assert_function(LuanFunction v) throws LuanException {
-		Utils.checkNotNull(v);
-		return v;
-	}
-
 	public static LuanFunction range(final double from,final double to,Double stepV) throws LuanException {
 		final double step = stepV==null ? 1.0 : stepV;
 		if( step == 0.0 )