From aa94e2187e1472f357529746340f8e5d69bc71be Mon Sep 17 00:00:00 2001 From: pointfeev Date: Thu, 6 Apr 2023 19:49:40 -0400 Subject: [PATCH] remove unused reference --- CreamInstaller/CreamInstaller.csproj | 1 - CreamInstaller/Utility/HttpClientManager.cs | 13 ------------- 2 files changed, 14 deletions(-) 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