From 467f06d6f01deb4905a901a9d337a8dfdef817e1 Mon Sep 17 00:00:00 2001 From: James Ko Date: Tue, 5 Jul 2016 12:45:15 -0400 Subject: [PATCH] Remove TODO on throwing exception --- src/mscorlib/src/System/Text/EncodingForwarder.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mscorlib/src/System/Text/EncodingForwarder.cs b/src/mscorlib/src/System/Text/EncodingForwarder.cs index 7bc217dc9e0b..d4bcf800e373 100644 --- a/src/mscorlib/src/System/Text/EncodingForwarder.cs +++ b/src/mscorlib/src/System/Text/EncodingForwarder.cs @@ -130,9 +130,6 @@ public unsafe static int GetBytes(Encoding encoding, string s, int charIndex, in int byteCount = bytes.Length - byteIndex; // Fixed doesn't like empty arrays - // TODO: Consider just throwing an - // exception here instead of allocating - // a new array, if (byteCount == 0) if (bytes.Length == 0) bytes = new byte[1];