diff options
| author | Bond_009 <bond.009@outlook.com> | 2019-01-20 14:25:13 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2019-01-20 14:25:13 +0100 |
| commit | ca910325f3a0d8ce0cf71f2553d395e797b8c57d (patch) | |
| tree | 7644243d95bf5c2da0db7e312f420655040957a7 /Emby.Drawing/UnplayedCountIndicator.cs | |
| parent | 8fc8fc06223c567141289cde9ab00c66acfaa6e2 (diff) | |
Remove unneeded fields
Diffstat (limited to 'Emby.Drawing/UnplayedCountIndicator.cs')
| -rw-r--r-- | Emby.Drawing/UnplayedCountIndicator.cs | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/Emby.Drawing/UnplayedCountIndicator.cs b/Emby.Drawing/UnplayedCountIndicator.cs index caa3e465be..16c084a21b 100644 --- a/Emby.Drawing/UnplayedCountIndicator.cs +++ b/Emby.Drawing/UnplayedCountIndicator.cs @@ -1,28 +1,14 @@ using System.Globalization; -using MediaBrowser.Common.Configuration; -using MediaBrowser.Common.Net; using MediaBrowser.Model.Drawing; -using MediaBrowser.Model.IO; using SkiaSharp; namespace Emby.Drawing { - public class UnplayedCountIndicator + public static class UnplayedCountIndicator { private const int OffsetFromTopRightCorner = 38; - private readonly IApplicationPaths _appPaths; - private readonly IHttpClient _iHttpClient; - private readonly IFileSystem _fileSystem; - - public UnplayedCountIndicator(IApplicationPaths appPaths, IHttpClient iHttpClient, IFileSystem fileSystem) - { - _appPaths = appPaths; - _iHttpClient = iHttpClient; - _fileSystem = fileSystem; - } - - public void DrawUnplayedCountIndicator(SKCanvas canvas, ImageSize imageSize, int count) + public static void DrawUnplayedCountIndicator(SKCanvas canvas, ImageSize imageSize, int count) { var x = imageSize.Width - OffsetFromTopRightCorner; var text = count.ToString(CultureInfo.InvariantCulture); |
