Преглед изворни кода

[lua] clean up Boot imports

Justin Donaldson пре 9 година
родитељ
комит
3e914e7349
1 измењених фајлова са 5 додато и 9 уклоњено
  1. 5 9
      std/lua/Boot.hx

+ 5 - 9
std/lua/Boot.hx

@@ -22,14 +22,10 @@
 
 package lua;
 
-// Bit and Table must be imported for basic Haxe datatypes to work.
-import lua.Bit;
-import lua.Table;
-import lua.Thread;
-import haxe.io.Path;
-
 import haxe.Constraints.Function;
-using lua.PairTools;
+
+// TODO: seperate bit helper method from extern so operators can use it.
+import lua.Bit;
 
 @:dox(hide)
 class Boot {
@@ -189,7 +185,7 @@ class Boot {
 	   Helper method to generate a string representation of a class
 	*/
 	static function printClassRec(c:Table<String,Dynamic>, result='', s : String) : String {
-		var f = lua.Boot.__string_rec;
+		var f = Boot.__string_rec;
 		untyped __lua__("for k,v in pairs(c) do if result ~= '' then result = result .. ', ' end result = result .. k .. ':' .. f(v, s.. '\t') end");
 		return result;
 	}
@@ -371,7 +367,7 @@ class Boot {
 	*/
 	public static function tempFile() : String {
 		switch (Sys.systemName()){
-			case "Windows" : return Path.join([Os.getenv("TMP"), Os.tmpname()]);
+			case "Windows" : return haxe.io.Path.join([Os.getenv("TMP"), Os.tmpname()]);
 			default : return Os.tmpname();
 		}
 	}