diff options
| author | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-03 21:29:48 +0100 |
|---|---|---|
| committer | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-03 21:29:48 +0100 |
| commit | d15af6eb35c782b0f150fc67bf0f2b0566d86edc (patch) | |
| tree | e5c38d9294f2f97fb25d1aa9e7d19a8e3a65eb08 /Emby.Drawing.Net/ImageHelpers.cs | |
| parent | 86275bcc55cfe6cf6798d152a53f79c6f7811b52 (diff) | |
Removed all old and unused ImageEncoders.
Remove solution platform cruft.
Diffstat (limited to 'Emby.Drawing.Net/ImageHelpers.cs')
| -rw-r--r-- | Emby.Drawing.Net/ImageHelpers.cs | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/Emby.Drawing.Net/ImageHelpers.cs b/Emby.Drawing.Net/ImageHelpers.cs deleted file mode 100644 index 1afc47cd0..000000000 --- a/Emby.Drawing.Net/ImageHelpers.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Emby.Drawing.Net -{ - internal static class ImageHelpers - { - internal static List<string> ProjectPaths(List<string> paths, int count) - { - if (count <= 0) - { - throw new ArgumentOutOfRangeException("count"); - } - if (paths.Count == 0) - { - throw new ArgumentOutOfRangeException("paths"); - } - - var list = new List<string>(); - - AddToList(list, paths, count); - - return list.Take(count).ToList(); - } - - private static void AddToList(List<string> list, List<string> paths, int count) - { - while (list.Count < count) - { - foreach (var path in paths) - { - list.Add(path); - - if (list.Count >= count) - { - return; - } - } - } - } - } -} |
