aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-07-30 14:07:45 -0500
committerJP Dillingham <jpdillingham@gmail.com>2022-07-30 14:07:45 -0500
commitd830ec75b4f8e33f583a2f1bbb25c822eb7f4a5b (patch)
tree0679bc1b5786ac2c6bf5d67eddc5242c9e81923e /src
parent650b5051e92c121cc17343abfc2e0ac8cbd3ff21 (diff)
downloadslskd-d830ec75b4f8e33f583a2f1bbb25c822eb7f4a5b.tar.gz
remove deprecated services
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Transfers/API/Controllers/TransfersController.cs24
1 files changed, 3 insertions, 21 deletions
diff --git a/src/slskd/Transfers/API/Controllers/TransfersController.cs b/src/slskd/Transfers/API/Controllers/TransfersController.cs
index 3885f416..d12a3f89 100644
--- a/src/slskd/Transfers/API/Controllers/TransfersController.cs
+++ b/src/slskd/Transfers/API/Controllers/TransfersController.cs
@@ -15,8 +15,6 @@
// along with this program. If not, see https://www.gnu.org/licenses/.
// </copyright>
-using Microsoft.Extensions.Options;
-
namespace slskd.Transfers.API
{
using System;
@@ -26,9 +24,6 @@ namespace slskd.Transfers.API
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
- using Serilog;
- using slskd.Integrations.FTP;
- using Soulseek;
/// <summary>
/// Transfers.
@@ -43,27 +38,14 @@ namespace slskd.Transfers.API
/// <summary>
/// Initializes a new instance of the <see cref="TransfersController"/> class.
/// </summary>
- /// <param name="options"></param>
- /// <param name="soulseekClient"></param>
- /// <param name="tracker"></param>
- /// <param name="ftpClient"></param>
+ /// <param name="transferService"></param>
public TransfersController(
- IOptionsSnapshot<Options> options,
- ISoulseekClient soulseekClient,
- ITransferService transferService,
- IFTPService ftpClient)
+ ITransferService transferService)
{
- Client = soulseekClient;
- Options = options.Value;
- FTP = ftpClient;
Transfers = transferService;
}
private ITransferService Transfers { get; }
- private Options Options { get; }
- private ISoulseekClient Client { get; }
- private IFTPService FTP { get; }
- private ILogger Log { get; } = Serilog.Log.ForContext<TransfersController>();
/// <summary>
/// Cancels the specified download.
@@ -348,7 +330,7 @@ namespace slskd.Transfers.API
[HttpGet("uploads/{username}/{id}")]
[Authorize]
[ProducesResponseType(200)]
- public async IActionResult GetUploads([FromRoute, Required] string username, [FromRoute, Required] string id)
+ public async Task<IActionResult> GetUploads([FromRoute, Required] string username, [FromRoute, Required] string id)
{
if (!Guid.TryParse(id, out var guid))
{