aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/ModelBinders/CommaDelimitedArrayModelBinderProvider.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-11-02 16:52:05 +0100
committerGitHub <noreply@github.com>2020-11-02 16:52:05 +0100
commit95918d161ed72cb2914cb3f3b7f55de46ed86372 (patch)
treecddd4b461d7c3bdec0551322228b492a0dffd6c1 /Jellyfin.Api/ModelBinders/CommaDelimitedArrayModelBinderProvider.cs
parentea1a462a9d0aaa7d1e627a7a9aa6fdc07833259a (diff)
parentf2a86d9c80748b39c4bd798882dea79b7f345302 (diff)
Merge pull request #4328 from crobibero/trigger-warning
Remove CommaDelimitedArrayModelBinderProvider
Diffstat (limited to 'Jellyfin.Api/ModelBinders/CommaDelimitedArrayModelBinderProvider.cs')
-rw-r--r--Jellyfin.Api/ModelBinders/CommaDelimitedArrayModelBinderProvider.cs29
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;
- }
- }
-}