mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 22:20:52 +00:00
Remove dead code
This commit is contained in:
@@ -86,15 +86,6 @@ namespace ArchiSteamFarm.IPC.Controllers.Api {
|
||||
return Ok(new GenericResponse<GitHubReleaseResponse>(new GitHubReleaseResponse(releaseResponse)));
|
||||
}
|
||||
|
||||
[HttpGet("MarkdownToText")]
|
||||
public ActionResult<GenericResponse<string>> MarkdownToTextGet([FromQuery] string text) {
|
||||
if (string.IsNullOrEmpty(text)) {
|
||||
return BadRequest(new GenericResponse<string>(false, string.Format(Strings.ErrorIsEmpty, nameof(text))));
|
||||
}
|
||||
|
||||
return Ok(new GenericResponse<string>(Utilities.MarkdownToText(text)));
|
||||
}
|
||||
|
||||
[HttpPost("Send")]
|
||||
public async Task<ActionResult<GenericResponse<string>>> SendPost([FromBody] WWWSendRequest request) {
|
||||
if (request == null) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user