diff --git a/src/Middleware/Localization/src/RequestLocalizationMiddleware.cs b/src/Middleware/Localization/src/RequestLocalizationMiddleware.cs
index fe56abcef4..876bc4394f 100644
--- a/src/Middleware/Localization/src/RequestLocalizationMiddleware.cs
+++ b/src/Middleware/Localization/src/RequestLocalizationMiddleware.cs
@@ -36,7 +36,6 @@ namespace Microsoft.AspNetCore.Localization
/// The representing the options for the
/// The used for logging.
/// .
- [ActivatorUtilitiesConstructor]
public RequestLocalizationMiddleware(RequestDelegate next, IOptions options, ILoggerFactory loggerFactory)
{
if (options == null)
@@ -49,18 +48,6 @@ namespace Microsoft.AspNetCore.Localization
_options = options.Value;
}
- ///
- /// Creates a new .
- ///
- /// The representing the next middleware in the pipeline.
- /// The representing the options for the
- /// .
- [Obsolete("This constructor is obsolete and will be removed in a future version. Use RequestLocalizationMiddleware(RequestDelegate next, IOptions options, ILoggerFactory loggerFactory) instead")]
- public RequestLocalizationMiddleware(RequestDelegate next, IOptions options)
- : this(next, options, NullLoggerFactory.Instance)
- {
- }
-
///
/// Invokes the logic of the middleware.
///