aboutsummaryrefslogtreecommitdiff
path: root/Emby.Drawing.Net/ImageHelpers.cs
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2019-01-05 03:07:00 +0300
committerGitHub <noreply@github.com>2019-01-05 03:07:00 +0300
commit80c3832610fa327beb86c8a34cab092025a46291 (patch)
treeffbd66938814d7da0bb18fc9e0463a0a0452e8aa /Emby.Drawing.Net/ImageHelpers.cs
parentf93cd97f9b66939908f95b601e2cbffa2e9eb63c (diff)
parent22adb838e6364839647a60731c17b464e494538a (diff)
Merge pull request #391 from EraYaN/remove-old-imageencoders
Remove old ImageEncoders (ImageMagick & Drawing.Net). Skia should be enough.
Diffstat (limited to 'Emby.Drawing.Net/ImageHelpers.cs')
-rw-r--r--Emby.Drawing.Net/ImageHelpers.cs43
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;
- }
- }
- }
- }
- }
-}