From ffe3b187d57c11c12aa13fe4663d1fcdf63d5815 Mon Sep 17 00:00:00 2001 From: Tratcher Date: Thu, 24 Jul 2025 08:05:48 +0000 Subject: [PATCH] Sync shared code from runtime --- .../runtime/Http3/QPack/H3StaticTable.Http3.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/Shared/runtime/Http3/QPack/H3StaticTable.Http3.cs b/src/Shared/runtime/Http3/QPack/H3StaticTable.Http3.cs index aa157ab41b67..aee248efc78a 100644 --- a/src/Shared/runtime/Http3/QPack/H3StaticTable.Http3.cs +++ b/src/Shared/runtime/Http3/QPack/H3StaticTable.Http3.cs @@ -1,24 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Generic; using System.Text; namespace System.Net.Http.QPack { internal static partial class H3StaticTable { - private static readonly Dictionary s_methodIndex = new Dictionary - { - // TODO connect is internal to system.net.http - [HttpMethod.Delete] = 16, - [HttpMethod.Get] = 17, - [HttpMethod.Head] = 18, - [HttpMethod.Options] = 19, - [HttpMethod.Post] = 20, - [HttpMethod.Put] = 21, - }; - public static bool TryGetStatusIndex(int status, out int index) { index = status switch @@ -45,9 +33,6 @@ public static bool TryGetStatusIndex(int status, out int index) public static int Count => s_staticTable.Length; - // TODO: just use Dictionary directly to avoid interface dispatch. - public static IReadOnlyDictionary MethodIndex => s_methodIndex; - public static ref readonly HeaderField Get(int index) => ref s_staticTable[index]; private static readonly HeaderField[] s_staticTable = new HeaderField[]