changeset 259:f9b201530b85

remove Package.preload git-svn-id: https://luan-java.googlecode.com/svn/trunk@260 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Tue, 28 Oct 2014 21:20:48 +0000
parents 4dfa86dbca45
children f1f7d8c7e94e
files core/src/luan/modules/PackageLuan.java
diffstat 1 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
diff -r 4dfa86dbca45 -r f9b201530b85 core/src/luan/modules/PackageLuan.java
--- a/core/src/luan/modules/PackageLuan.java	Tue Oct 28 20:38:04 2014 +0000
+++ b/core/src/luan/modules/PackageLuan.java	Tue Oct 28 21:20:48 2014 +0000
@@ -21,7 +21,6 @@
 		@Override public Object call(LuanState luan,Object[] args) {
 			LuanTable module = Luan.newTable();
 			module.put( "loaded", loaded(luan) );
-			module.put( "preload", Luan.newTable() );
 			module.put( "path", "?.luan;classpath:luan/modules/?.luan" );
 			module.put( "jpath", jpath );
 			try {
@@ -69,7 +68,6 @@
 		LuanTable tbl = (LuanTable)luan.registry().get(key);
 		if( tbl == null ) {
 			tbl = Luan.newTable();
-			tbl.add(preloadSearcher);
 			tbl.add(fileSearcher);
 			tbl.add(javaSearcher);
 			tbl.add(JavaLuan.javaSearcher);
@@ -118,14 +116,6 @@
 		return null;
 	}
 
-	public static final LuanFunction preloadSearcher = new LuanFunction() {
-		@Override public Object call(LuanState luan,Object[] args) {
-			String modName = (String)args[0];
-			LuanTable preload = (LuanTable)pkg(luan,"preload");
-			return preload==null ? LuanFunction.NOTHING : preload.get(modName);
-		}
-	};
-
 	public static String search_path(String name,String path) {
 		for( String s : path.split(";") ) {
 			String file = s.replaceAll("\\?",name);