Remove dead code

This commit is contained in:
JustArchi
2018-09-22 01:30:07 +02:00
parent 7f3c198272
commit dfc8473680
2 changed files with 0 additions and 25 deletions

View File

@@ -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) {

View File

@@ -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();