diff --git a/src/Microsoft.AspNetCore.Routing/Builder/EndpointRoutingApplicationBuilderExtensions.cs b/src/Microsoft.AspNetCore.Routing/Builder/EndpointRoutingApplicationBuilderExtensions.cs deleted file mode 100644 index 428fae6ab1..0000000000 --- a/src/Microsoft.AspNetCore.Routing/Builder/EndpointRoutingApplicationBuilderExtensions.cs +++ /dev/null @@ -1,19 +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.Builder -{ - // TODO: Remove once MVC is updated - public static class EndpointRoutingApplicationBuilderExtensions - { - public static IApplicationBuilder UseGlobalRouting(this IApplicationBuilder builder) - { - return Internal.EndpointRoutingApplicationBuilderExtensions.UseEndpointRouting(builder); - } - - public static IApplicationBuilder UseEndpoint(this IApplicationBuilder builder) - { - return Internal.EndpointRoutingApplicationBuilderExtensions.UseEndpoint(builder); - } - } -} diff --git a/src/Microsoft.AspNetCore.Routing/Internal/EndpointRoutingApplicationBuilderExtensions.cs b/src/Microsoft.AspNetCore.Routing/Internal/EndpointRoutingApplicationBuilderExtensions.cs index 03dd6b4247..281607cfba 100644 --- a/src/Microsoft.AspNetCore.Routing/Internal/EndpointRoutingApplicationBuilderExtensions.cs +++ b/src/Microsoft.AspNetCore.Routing/Internal/EndpointRoutingApplicationBuilderExtensions.cs @@ -11,9 +11,6 @@ namespace Microsoft.AspNetCore.Internal { public static class EndpointRoutingApplicationBuilderExtensions { - // TODO: Remove once MVC is updated - private const string GlobalRoutingRegisteredKey = "__GlobalRoutingMiddlewareRegistered"; - private const string EndpointRoutingRegisteredKey = "__EndpointRoutingMiddlewareRegistered"; public static IApplicationBuilder UseEndpointRouting(this IApplicationBuilder builder) @@ -21,7 +18,6 @@ namespace Microsoft.AspNetCore.Internal VerifyRoutingIsRegistered(builder); builder.Properties[EndpointRoutingRegisteredKey] = true; - builder.Properties[GlobalRoutingRegisteredKey] = true; return builder.UseMiddleware(); }