From: Stephen Toub Date: Tue, 1 Oct 2019 19:43:41 +0000 (-0400) Subject: Remove unnecessary dependencies from System.Net.Http (dotnet/corefx#41470) X-Git-Tag: submit/tizen/20210909.063632~11031^2~379 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e851484147e6cad5cc99043f0b980ee3cadd9589;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Remove unnecessary dependencies from System.Net.Http (dotnet/corefx#41470) Commit migrated from https://github.com/dotnet/corefx/commit/e4cfb1761f20b182919db2aeb6ba92b48492c469 --- diff --git a/src/libraries/System.Net.Http/src/System.Net.Http.csproj b/src/libraries/System.Net.Http/src/System.Net.Http.csproj index ac48994..cfec040 100644 --- a/src/libraries/System.Net.Http/src/System.Net.Http.csproj +++ b/src/libraries/System.Net.Http/src/System.Net.Http.csproj @@ -655,24 +655,20 @@ - - - - + - - - + + @@ -680,20 +676,14 @@ - - - - - - diff --git a/src/libraries/System.Net.Http/src/System/Net/Http/HttpRuleParser.cs b/src/libraries/System.Net.Http/src/System/Net/Http/HttpRuleParser.cs index a6a932f..2ddaf22 100644 --- a/src/libraries/System.Net.Http/src/System/Net/Http/HttpRuleParser.cs +++ b/src/libraries/System.Net.Http/src/System/Net/Http/HttpRuleParser.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System.Diagnostics; -using System.Diagnostics.Contracts; using System.Globalization; using System.Text; @@ -71,7 +70,6 @@ namespace System.Net.Http return s_tokenChars[character]; } - [Pure] internal static int GetTokenLength(string input, int startIndex) { Debug.Assert(input != null); @@ -94,7 +92,6 @@ namespace System.Net.Http return input.Length - startIndex; } - [Pure] internal static bool IsToken(string input) { for (int i = 0; i < input.Length; i++) @@ -108,7 +105,6 @@ namespace System.Net.Http return true; } - [Pure] internal static bool IsToken(ReadOnlySpan input) { for (int i = 0; i < input.Length; i++)