diff options
| author | cvium <clausvium@gmail.com> | 2021-04-30 23:35:29 +0200 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2021-04-30 23:35:29 +0200 |
| commit | 716cbb06958da987ab917c1f6408396d4ace7a0c (patch) | |
| tree | baea7b2993a6a0f6ca29f1399274af58df687648 /MediaBrowser.Model/Entities/ProviderIdsExtensions.cs | |
| parent | ba2e346d1246cc51e186a64d38a9b7385492ca4f (diff) | |
remove span based setproviderid
Diffstat (limited to 'MediaBrowser.Model/Entities/ProviderIdsExtensions.cs')
| -rw-r--r-- | MediaBrowser.Model/Entities/ProviderIdsExtensions.cs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/MediaBrowser.Model/Entities/ProviderIdsExtensions.cs b/MediaBrowser.Model/Entities/ProviderIdsExtensions.cs index bc14da7f2..09d14dc6a 100644 --- a/MediaBrowser.Model/Entities/ProviderIdsExtensions.cs +++ b/MediaBrowser.Model/Entities/ProviderIdsExtensions.cs @@ -136,36 +136,6 @@ namespace MediaBrowser.Model.Entities /// Sets a provider id. /// </summary> /// <param name="instance">The instance.</param> - /// <param name="name">The name.</param> - /// <param name="value">The value.</param> - public static void SetProviderId(this IHasProviderIds instance, ReadOnlySpan<char> name, ReadOnlySpan<char> value) - { - if (instance == null) - { - throw new ArgumentNullException(nameof(instance)); - } - - // If it's null remove the key from the dictionary - if (value.IsEmpty) - { - instance.ProviderIds?.Remove(name.ToString()); - } - else - { - // Ensure it exists - if (instance.ProviderIds == null) - { - instance.ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); - } - - instance.ProviderIds[name.ToString()] = value.ToString(); - } - } - - /// <summary> - /// Sets a provider id. - /// </summary> - /// <param name="instance">The instance.</param> /// <param name="provider">The provider.</param> /// <param name="value">The value.</param> public static void SetProviderId(this IHasProviderIds instance, MetadataProvider provider, string value) |
