remove unused reference
This commit is contained in:
parent
24915e4495
commit
aa94e2187e
2 changed files with 0 additions and 14 deletions
|
@ -145,7 +145,6 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Gameloop.Vdf" Version="0.6.2" />
|
||||
<PackageReference Include="HtmlAgilityPack" Version="1.11.46" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
|
||||
<PackageReference Include="System.ServiceModel.Primitives" Version="4.10.0" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -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<HtmlNodeCollection> 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<Image> GetImageFromUrl(string url)
|
||||
{
|
||||
try
|
||||
|
|
Loading…
Reference in a new issue