From: James Ko Date: Tue, 5 Jul 2016 16:45:15 +0000 (-0400) Subject: Remove TODO on throwing exception X-Git-Tag: submit/tizen/20210909.063632~11030^2~9929^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21040423f70397753104a2fbafb9125a351c1b1e;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Remove TODO on throwing exception Commit migrated from https://github.com/dotnet/coreclr/commit/467f06d6f01deb4905a901a9d337a8dfdef817e1 --- 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];