Skip to content

Commit 7c19fd5

Browse files
Sync shared code from runtime (#62900)
Co-authored-by: Tratcher <[email protected]>
1 parent d65e599 commit 7c19fd5

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/Shared/runtime/Http3/QPack/H3StaticTable.Http3.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.Collections.Generic;
54
using System.Text;
65

76
namespace System.Net.Http.QPack
87
{
98
internal static partial class H3StaticTable
109
{
11-
private static readonly Dictionary<HttpMethod, int> s_methodIndex = new Dictionary<HttpMethod, int>
12-
{
13-
// TODO connect is internal to system.net.http
14-
[HttpMethod.Delete] = 16,
15-
[HttpMethod.Get] = 17,
16-
[HttpMethod.Head] = 18,
17-
[HttpMethod.Options] = 19,
18-
[HttpMethod.Post] = 20,
19-
[HttpMethod.Put] = 21,
20-
};
21-
2210
public static bool TryGetStatusIndex(int status, out int index)
2311
{
2412
index = status switch
@@ -45,9 +33,6 @@ public static bool TryGetStatusIndex(int status, out int index)
4533

4634
public static int Count => s_staticTable.Length;
4735

48-
// TODO: just use Dictionary directly to avoid interface dispatch.
49-
public static IReadOnlyDictionary<HttpMethod, int> MethodIndex => s_methodIndex;
50-
5136
public static ref readonly HeaderField Get(int index) => ref s_staticTable[index];
5237

5338
private static readonly HeaderField[] s_staticTable = new HeaderField[]

0 commit comments

Comments
 (0)