diff --git a/ArchiSteamFarm/IPC/Controllers/Api/WWWController.cs b/ArchiSteamFarm/IPC/Controllers/Api/WWWController.cs index 0f6a3c192..629d78c47 100644 --- a/ArchiSteamFarm/IPC/Controllers/Api/WWWController.cs +++ b/ArchiSteamFarm/IPC/Controllers/Api/WWWController.cs @@ -86,15 +86,6 @@ namespace ArchiSteamFarm.IPC.Controllers.Api { return Ok(new GenericResponse(new GitHubReleaseResponse(releaseResponse))); } - [HttpGet("MarkdownToText")] - public ActionResult> MarkdownToTextGet([FromQuery] string text) { - if (string.IsNullOrEmpty(text)) { - return BadRequest(new GenericResponse(false, string.Format(Strings.ErrorIsEmpty, nameof(text)))); - } - - return Ok(new GenericResponse(Utilities.MarkdownToText(text))); - } - [HttpPost("Send")] public async Task>> SendPost([FromBody] WWWSendRequest request) { if (request == null) { diff --git a/ArchiSteamFarm/Utilities.cs b/ArchiSteamFarm/Utilities.cs index e86d8bbb1..d4e172241 100644 --- a/ArchiSteamFarm/Utilities.cs +++ b/ArchiSteamFarm/Utilities.cs @@ -30,7 +30,6 @@ using System.Threading; using System.Threading.Tasks; using Humanizer; using Humanizer.Localisation; -using Markdig; namespace ArchiSteamFarm { internal static class Utilities { @@ -178,21 +177,6 @@ namespace ArchiSteamFarm { return true; } - internal static string MarkdownToText(string markdownText) { - if (string.IsNullOrEmpty(markdownText)) { - ASF.ArchiLogger.LogNullError(nameof(markdownText)); - return null; - } - - string plainText = Markdown.ToPlainText(markdownText); - if (plainText == null) { - ASF.ArchiLogger.LogNullError(nameof(plainText)); - return null; - } - - return plainText; - } - internal static int RandomNext() { lock (Random) { return Random.Next();