diff options
author | Stephen Toub <stoub@microsoft.com> | 2018-11-07 13:55:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-07 13:55:22 -0500 |
commit | c07d491548a04456ff69b182579ae83244890af4 (patch) | |
tree | a86945714c01fee7a7dc3a1f5ece88ec1ac2b1fc /src | |
parent | f8ba00e0446e2a8b2f0e969aea249bf886e8ff5e (diff) | |
download | coreclr-c07d491548a04456ff69b182579ae83244890af4.tar.gz coreclr-c07d491548a04456ff69b182579ae83244890af4.tar.bz2 coreclr-c07d491548a04456ff69b182579ae83244890af4.zip |
Delete dead code from IdnMapping (#20857)
Diffstat (limited to 'src')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Globalization/IdnMapping.cs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Globalization/IdnMapping.cs b/src/System.Private.CoreLib/shared/System/Globalization/IdnMapping.cs index 164e46dc8a..849602abcb 100644 --- a/src/System.Private.CoreLib/shared/System/Globalization/IdnMapping.cs +++ b/src/System.Private.CoreLib/shared/System/Globalization/IdnMapping.cs @@ -207,15 +207,6 @@ namespace System.Globalization throw new ArgumentException(SR.Format(SR.Argument_InvalidCharSequence, unicode.Length - 1), nameof(unicode)); } - // Have to correctly IDNA normalize the string and Unassigned flags - bool bHasLastDot = (unicode.Length > 0) && IsDot(unicode[unicode.Length - 1]); - - // Make sure we didn't normalize away something after a last dot - if ((!bHasLastDot) && unicode.Length > 0 && IsDot(unicode[unicode.Length - 1])) - { - throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode)); - } - // May need to check Std3 rules again for non-ascii if (UseStd3AsciiRules) { |