diff src/luan/modules/lucene/SupplementingConfig.java @ 1562:b89212fd04b5

remove table.luan
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 08 Nov 2020 16:50:59 -0700
parents e6d808f40bbc
children 8fbcc4747091
line wrap: on
line diff
--- a/src/luan/modules/lucene/SupplementingConfig.java	Thu Nov 05 20:24:09 2020 -0700
+++ b/src/luan/modules/lucene/SupplementingConfig.java	Sun Nov 08 16:50:59 2020 -0700
@@ -38,7 +38,7 @@
 		if( supplementer == null )
 			return super.getMoreFieldInfo(storedFields);
 		try {
-			LuanTable tbl = toTable(supplementer.luan(),storedFields);
+			LuanTable tbl = toTable(storedFields);
 			tbl = (LuanTable)supplementer.call(tbl);
 			if( tbl == null ) {
 				return super.getMoreFieldInfo(storedFields);
@@ -50,13 +50,13 @@
 		}
 	}
 
-	static LuanTable toTable(Luan luan,Map map) throws LuanException {
-		LuanTable table = new LuanTable(luan);
+	static LuanTable toTable(Map map) throws LuanException {
+		LuanTable table = new LuanTable();
 		for( Object obj : map.entrySet() ) {
 			Map.Entry entry = (Map.Entry)obj;
 			Object value = entry.getValue();
 			if( value instanceof List )
-				value = new LuanTable(luan,(List)value);
+				value = new LuanTable((List)value);
 			table.rawPut( entry.getKey(), value );
 		}
 		return table;