Просмотр исходного кода

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

Nicolas Cannasse 2 лет назад
Родитель
Сommit
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,
 		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 ) {
 		var index = files.length;
 		var info = { path: path, inputs: [] };