diff options
| author | crobibero <cody@robibe.ro> | 2020-10-14 13:03:36 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-10-14 13:03:36 -0600 |
| commit | f2a86d9c80748b39c4bd798882dea79b7f345302 (patch) | |
| tree | 3c74a73f4e86f9bbe4f10973c36ea8d4f4765a75 /Jellyfin.Api/ModelBinders | |
| parent | d54de29485cc622a64c17884b39c9bc65e33af29 (diff) | |
Remove CommaDelimitedArrayModelBinderProvider
Diffstat (limited to 'Jellyfin.Api/ModelBinders')
| -rw-r--r-- | Jellyfin.Api/ModelBinders/CommaDelimitedArrayModelBinderProvider.cs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/Jellyfin.Api/ModelBinders/CommaDelimitedArrayModelBinderProvider.cs b/Jellyfin.Api/ModelBinders/CommaDelimitedArrayModelBinderProvider.cs deleted file mode 100644 index b9785a73b..000000000 --- a/Jellyfin.Api/ModelBinders/CommaDelimitedArrayModelBinderProvider.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using Microsoft.AspNetCore.Mvc.ModelBinding; - -namespace Jellyfin.Api.ModelBinders -{ - /// <summary> - /// Comma delimited array model binder provider. - /// </summary> - public class CommaDelimitedArrayModelBinderProvider : IModelBinderProvider - { - private readonly IModelBinder _binder; - - /// <summary> - /// Initializes a new instance of the <see cref="CommaDelimitedArrayModelBinderProvider"/> class. - /// </summary> - public CommaDelimitedArrayModelBinderProvider() - { - _binder = new CommaDelimitedArrayModelBinder(); - } - - /// <inheritdoc /> - public IModelBinder? GetBinder(ModelBinderProviderContext context) - { - return context.Metadata.ModelType.IsArray ? _binder : null; - } - } -} |
