From 5b59c687eb4f1d60f8a52b376a356a03813055f2 Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Tue, 16 Jul 2019 16:34:26 -0700 Subject: [PATCH] Remove unused types --- .../Blazor/DevServer/src/Server/Startup.cs | 2 +- ...NetCore.Components.Server.netcoreapp3.0.cs | 7 ------ .../Server/src/WasmMediaTypeNames.cs | 22 ------------------- 3 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 src/Components/Server/src/WasmMediaTypeNames.cs diff --git a/src/Components/Blazor/DevServer/src/Server/Startup.cs b/src/Components/Blazor/DevServer/src/Server/Startup.cs index 95f15ff3e5..ca35836f0c 100644 --- a/src/Components/Blazor/DevServer/src/Server/Startup.cs +++ b/src/Components/Blazor/DevServer/src/Server/Startup.cs @@ -33,7 +33,7 @@ namespace Microsoft.AspNetCore.Blazor.DevServer.Server options.MimeTypes = ResponseCompressionDefaults.MimeTypes.Concat(new[] { MediaTypeNames.Application.Octet, - WasmMediaTypeNames.Application.Wasm + "application/wasm", }); }); } diff --git a/src/Components/Server/ref/Microsoft.AspNetCore.Components.Server.netcoreapp3.0.cs b/src/Components/Server/ref/Microsoft.AspNetCore.Components.Server.netcoreapp3.0.cs index 4470d13745..aa7d69e3f9 100644 --- a/src/Components/Server/ref/Microsoft.AspNetCore.Components.Server.netcoreapp3.0.cs +++ b/src/Components/Server/ref/Microsoft.AspNetCore.Components.Server.netcoreapp3.0.cs @@ -52,13 +52,6 @@ namespace Microsoft.AspNetCore.Components.Server { System.Threading.Tasks.Task PrerenderComponentAsync(Microsoft.AspNetCore.Components.Server.ComponentPrerenderingContext context); } - public static partial class WasmMediaTypeNames - { - public static partial class Application - { - public const string Wasm = "application/wasm"; - } - } } namespace Microsoft.AspNetCore.Components.Server.Circuits { diff --git a/src/Components/Server/src/WasmMediaTypeNames.cs b/src/Components/Server/src/WasmMediaTypeNames.cs deleted file mode 100644 index f632d62fd5..0000000000 --- a/src/Components/Server/src/WasmMediaTypeNames.cs +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Components.Server -{ - /// - /// Contains values for WASM-related media types. - /// - public static class WasmMediaTypeNames - { - /// - /// Contains values for WASM-related media types within the "application." namespace - /// - public static class Application - { - /// - /// The standard media type name for WebAssembly binary files. - /// - public const string Wasm = "application/wasm"; - } - } -}