From e851484147e6cad5cc99043f0b980ee3cadd9589 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Tue, 1 Oct 2019 15:43:41 -0400 Subject: [PATCH] Remove unnecessary dependencies from System.Net.Http (dotnet/corefx#41470) Commit migrated from https://github.com/dotnet/corefx/commit/e4cfb1761f20b182919db2aeb6ba92b48492c469 --- .../System.Net.Http/src/System.Net.Http.csproj | 16 +++------------- .../src/System/Net/Http/HttpRuleParser.cs | 4 ---- 2 files changed, 3 insertions(+), 17 deletions(-) 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 ac4899491820e..cfec040a526be 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 a6a932fe729f0..2ddaf226e7af3 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 @@ internal static bool IsTokenChar(char character) return s_tokenChars[character]; } - [Pure] internal static int GetTokenLength(string input, int startIndex) { Debug.Assert(input != null); @@ -94,7 +92,6 @@ internal static int GetTokenLength(string input, int startIndex) return input.Length - startIndex; } - [Pure] internal static bool IsToken(string input) { for (int i = 0; i < input.Length; i++) @@ -108,7 +105,6 @@ internal static bool IsToken(string input) return true; } - [Pure] internal static bool IsToken(ReadOnlySpan input) { for (int i = 0; i < input.Length; i++)