Sfoglia il codice sorgente

Remove unused null check in Bytes.getString (#12025)

limepoutine 6 mesi fa
parent
commit
640f95978c
1 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  1. 0 2
      std/haxe/io/Bytes.hx

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

@@ -404,8 +404,6 @@ class Bytes {
 		interpreted with the given `encoding` (UTF-8 by default).
 	**/
 	public function getString(pos:Int, len:Int, ?encoding:Encoding):String {
-		if (encoding == null)
-			encoding == UTF8;
 		#if !neko
 		if (pos < 0 || len < 0 || pos + len > length)
 			throw Error.OutsideBounds;