aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Helpers/RequestHelpers.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2021-01-24 13:32:29 +0100
committerBond_009 <bond.009@outlook.com>2021-01-24 13:32:29 +0100
commit1c2cd7efa09e46c181ea974a355792373c54e45a (patch)
tree66fee25ff4ad6c7e0b2a3a67aef38b792175c15f /Jellyfin.Api/Helpers/RequestHelpers.cs
parentb4d04f9ca5345c87d44993fbbb9e211c1dbf2dcd (diff)
Remove useless abstraction and clean up formatting
Diffstat (limited to 'Jellyfin.Api/Helpers/RequestHelpers.cs')
-rw-r--r--Jellyfin.Api/Helpers/RequestHelpers.cs19
1 files changed, 0 insertions, 19 deletions
diff --git a/Jellyfin.Api/Helpers/RequestHelpers.cs b/Jellyfin.Api/Helpers/RequestHelpers.cs
index 056ad83da..5195bf36e 100644
--- a/Jellyfin.Api/Helpers/RequestHelpers.cs
+++ b/Jellyfin.Api/Helpers/RequestHelpers.cs
@@ -47,25 +47,6 @@ namespace Jellyfin.Api.Helpers
}
/// <summary>
- /// Splits a string at a separating character into an array of substrings.
- /// </summary>
- /// <param name="value">The string to split.</param>
- /// <param name="separator">The char that separates the substrings.</param>
- /// <param name="removeEmpty">Option to remove empty substrings from the array.</param>
- /// <returns>An array of the substrings.</returns>
- internal static string[] Split(string? value, char separator, bool removeEmpty)
- {
- if (string.IsNullOrWhiteSpace(value))
- {
- return Array.Empty<string>();
- }
-
- return removeEmpty
- ? value.Split(separator, StringSplitOptions.RemoveEmptyEntries)
- : value.Split(separator);
- }
-
- /// <summary>
/// Checks if the user can update an entry.
/// </summary>
/// <param name="authContext">Instance of the <see cref="IAuthorizationContext"/> interface.</param>