diff options
| author | Bond-009 <bond.009@outlook.com> | 2020-03-02 12:28:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-02 12:28:31 +0100 |
| commit | 1c21248e2e10b292a890cb10a34cc26c2f34643e (patch) | |
| tree | 338e102269f93754eb7c81086fd5e1598c3211b7 /MediaBrowser.Controller/Sorting/SortHelper.cs | |
| parent | 13d30a0a793de09862a725e6c7581fa70c10e034 (diff) | |
| parent | 376bbb40bdc4f68c61416855fd807fc4b68fbc92 (diff) | |
Merge pull request #2474 from JustAMan/simplify-sorting
Simplify AlphanumericComparer, reduce code duplication
Diffstat (limited to 'MediaBrowser.Controller/Sorting/SortHelper.cs')
| -rw-r--r-- | MediaBrowser.Controller/Sorting/SortHelper.cs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/MediaBrowser.Controller/Sorting/SortHelper.cs b/MediaBrowser.Controller/Sorting/SortHelper.cs deleted file mode 100644 index 05981d975..000000000 --- a/MediaBrowser.Controller/Sorting/SortHelper.cs +++ /dev/null @@ -1,25 +0,0 @@ -namespace MediaBrowser.Controller.Sorting -{ - public static class SortHelper - { - private enum ChunkType { Alphanumeric, Numeric }; - - public static bool InChunk(char ch, char otherCh) - { - var type = ChunkType.Alphanumeric; - - if (char.IsDigit(otherCh)) - { - type = ChunkType.Numeric; - } - - if ((type == ChunkType.Alphanumeric && char.IsDigit(ch)) - || (type == ChunkType.Numeric && !char.IsDigit(ch))) - { - return false; - } - - return true; - } - } -} |
