diff --git a/CreamInstaller/CreamInstaller.csproj b/CreamInstaller/CreamInstaller.csproj index f0e5675..5bb3669 100644 --- a/CreamInstaller/CreamInstaller.csproj +++ b/CreamInstaller/CreamInstaller.csproj @@ -145,7 +145,6 @@ - diff --git a/CreamInstaller/Utility/HttpClientManager.cs b/CreamInstaller/Utility/HttpClientManager.cs index 16fa397..99cac6a 100644 --- a/CreamInstaller/Utility/HttpClientManager.cs +++ b/CreamInstaller/Utility/HttpClientManager.cs @@ -4,7 +4,6 @@ using System.Drawing; using System.Net; using System.Net.Http; using System.Threading.Tasks; -using HtmlAgilityPack; #if DEBUG using CreamInstaller.Forms; #endif @@ -65,18 +64,6 @@ internal static class HttpClientManager #endif } - private static HtmlDocument ToHtmlDocument(this string html) - { - HtmlDocument document = new(); - document.LoadHtml(html); - return document; - } - - internal static async Task GetDocumentNodes(string url, string xpath) - => (await EnsureGet(url))?.ToHtmlDocument()?.GetDocumentNodes(xpath); - - private static HtmlNodeCollection GetDocumentNodes(this HtmlDocument htmlDocument, string xpath) => htmlDocument.DocumentNode?.SelectNodes(xpath); - internal static async Task GetImageFromUrl(string url) { try