diff options
author | Stephen Halter <halter73@gmail.com> | 2022-09-14 03:38:08 +0300 |
---|---|---|
committer | Stephen Halter <halter73@gmail.com> | 2022-09-14 03:38:08 +0300 |
commit | df90b67fba5eb070d79eb11e78760c601c61be89 (patch) | |
tree | 54ce851edba756ac1338e0704d1ac58928398b1a | |
parent | 6bae7936995153231671e2a391b53c33d30c269b (diff) |
Remove dead codehalter73/43675
-rw-r--r-- | src/Http/Http.Extensions/src/RequestDelegateFactory.cs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/Http/Http.Extensions/src/RequestDelegateFactory.cs b/src/Http/Http.Extensions/src/RequestDelegateFactory.cs index 9db919a868..f2de17c133 100644 --- a/src/Http/Http.Extensions/src/RequestDelegateFactory.cs +++ b/src/Http/Http.Extensions/src/RequestDelegateFactory.cs @@ -1812,17 +1812,6 @@ public static partial class RequestDelegateFactory return Expression.Convert(boundValueExpr, parameter.ParameterType); } - private static void AddInferredProducesResponseTypeMetadata(RequestDelegateFactoryContext factoryContext, Type type, string[] contentTypes) - { - if (factoryContext.MetadataAlreadyInferred) - { - return; - } - - // Type cannot be null, and contentTypes is either [ "application/json" ] or [ "text/plain" ] both of which are valid. - factoryContext.EndpointBuilder.Metadata.Add(ProducesResponseTypeMetadata.CreateUnvalidated(type, statusCode: 200, contentTypes)); - } - private static void AddInferredAcceptsMetadata(RequestDelegateFactoryContext factoryContext, Type type, string[] contentTypes) { if (factoryContext.MetadataAlreadyInferred) |