diff options
Diffstat (limited to 'Emby.Drawing.ImageMagick/ImageHelpers.cs')
| -rw-r--r-- | Emby.Drawing.ImageMagick/ImageHelpers.cs | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/Emby.Drawing.ImageMagick/ImageHelpers.cs b/Emby.Drawing.ImageMagick/ImageHelpers.cs deleted file mode 100644 index 866693399..000000000 --- a/Emby.Drawing.ImageMagick/ImageHelpers.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Emby.Drawing.ImageMagick -{ - internal static class ImageHelpers - { - internal static List<string> ProjectPaths(string[] paths, int count) - { - if (count <= 0) - { - throw new ArgumentOutOfRangeException("count"); - } - if (paths.Length == 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, string[] paths, int count) - { - while (list.Count < count) - { - foreach (var path in paths) - { - list.Add(path); - - if (list.Count >= count) - { - return; - } - } - } - } - } -} |
