Ver código fonte

make Bytes.readString inline again

Simon Krajewski 11 anos atrás
pai
commit
a9cab61569
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      std/haxe/io/Bytes.hx

+ 1 - 2
std/haxe/io/Bytes.hx

@@ -276,8 +276,7 @@ class Bytes {
 
 	@:deprecated("readString is deprecated, use getString instead")
 	@:noCompletion
-	// TODO: add inline if/when issue #2837 is resolved
-	public /*inline*/ function readString(pos:Int, len:Int):String {
+	public inline function readString(pos:Int, len:Int):String {
 		return getString(pos, len);
 	}