From 21040423f70397753104a2fbafb9125a351c1b1e 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 Commit migrated from https://github.com/dotnet/coreclr/commit/467f06d6f01deb4905a901a9d337a8dfdef817e1 --- src/coreclr/src/mscorlib/src/System/Text/EncodingForwarder.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/coreclr/src/mscorlib/src/System/Text/EncodingForwarder.cs b/src/coreclr/src/mscorlib/src/System/Text/EncodingForwarder.cs index 7bc217d..d4bcf80 100644 --- a/src/coreclr/src/mscorlib/src/System/Text/EncodingForwarder.cs +++ b/src/coreclr/src/mscorlib/src/System/Text/EncodingForwarder.cs @@ -130,9 +130,6 @@ namespace System.Text 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]; -- 2.7.4