Selaa lähdekoodia

make Bytes.readString inline again

Simon Krajewski 11 vuotta sitten
vanhempi
commit
a9cab61569
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  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);
 	}