From de75543b3373750c62c6a3432e5611f0c275738c Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Tue, 10 Aug 2021 20:39:11 -0600 Subject: [PATCH] Removed WindowsDesktopUtilities --- .../WinAudibleImageServer.cs | 28 ------------------- .../WindowsDesktopUtilities.csproj | 16 ----------- 2 files changed, 44 deletions(-) delete mode 100644 WindowsDesktopUtilities/WinAudibleImageServer.cs delete mode 100644 WindowsDesktopUtilities/WindowsDesktopUtilities.csproj diff --git a/WindowsDesktopUtilities/WinAudibleImageServer.cs b/WindowsDesktopUtilities/WinAudibleImageServer.cs deleted file mode 100644 index 1b3eeab2..00000000 --- a/WindowsDesktopUtilities/WinAudibleImageServer.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Drawing; -using Dinah.Core.Drawing; -using FileManager; - -namespace WindowsDesktopUtilities -{ - public static class WinAudibleImageServer - { - private static Dictionary cache { get; } = new Dictionary(); - - public static Image GetImage(string pictureId, PictureSize size) - { - var def = new PictureDefinition(pictureId, size); - if (!cache.ContainsKey(def)) - { - (var isDefault, var bytes) = PictureStorage.GetPicture(def); - - var image = ImageReader.ToImage(bytes); - if (isDefault) - return image; - cache[def] = image; - } - return cache[def]; - } - } -} diff --git a/WindowsDesktopUtilities/WindowsDesktopUtilities.csproj b/WindowsDesktopUtilities/WindowsDesktopUtilities.csproj deleted file mode 100644 index 88b1cbf5..00000000 --- a/WindowsDesktopUtilities/WindowsDesktopUtilities.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - - Library - net5.0-windows - true - - - - - - - - - - \ No newline at end of file