瀏覽代碼

disable warning on addPak (many other methods are not mt-safe anyway)

Nicolas Cannasse 2 年之前
父節點
當前提交
9e04cd70de
共有 1 個文件被更改,包括 2 次插入5 次删除
  1. 2 5
      hxd/fmt/pak/FileSystem.hx

+ 2 - 5
hxd/fmt/pak/FileSystem.hx

@@ -204,12 +204,9 @@ class FileSystem implements hxd.fs.FileSystem {
 
 
 		This method is intended to be used with single-threaded environment such as HTML5 target,
 		This method is intended to be used with single-threaded environment such as HTML5 target,
 		as it doesn't have access to sys package.
 		as it doesn't have access to sys package.
-		
-		Use with multi-threaded environment at your own risk with `-D heaps_add_pak_multithreaded` flag.
+
+		Use with multi-threaded environment at your own risk.
 	**/
 	**/
-	#if (target.threaded && !heaps_add_pak_multithreaded)
-	@:deprecated("addPak method is not designed to work in multi-threaded environment, avoid or use -D heaps_add_pak_multithreaded")
-	#end
 	public function addPak( file : FileInput, ?path : String ) {
 	public function addPak( file : FileInput, ?path : String ) {
 		var index = files.length;
 		var index = files.length;
 		var info = { path: path, inputs: [] };
 		var info = { path: path, inputs: [] };