From 9134cb4a6f51bf712b86864515e1f190e2505c1f Mon Sep 17 00:00:00 2001 From: A-Guldborg Date: Tue, 19 Nov 2024 20:41:58 +0100 Subject: [PATCH] Remove unused imports --- coffeecard/CoffeeCard.Library/Services/v2/EmailService.cs | 7 ------- coffeecard/CoffeeCard.Library/Services/v2/IEmailService.cs | 2 -- coffeecard/CoffeeCard.Library/Services/v2/TokenService.cs | 2 -- .../CoffeeCard.Tests.Unit/Services/v2/TokenServiceTests.cs | 7 ------- 4 files changed, 18 deletions(-) diff --git a/coffeecard/CoffeeCard.Library/Services/v2/EmailService.cs b/coffeecard/CoffeeCard.Library/Services/v2/EmailService.cs index 80494c01..0489f471 100644 --- a/coffeecard/CoffeeCard.Library/Services/v2/EmailService.cs +++ b/coffeecard/CoffeeCard.Library/Services/v2/EmailService.cs @@ -2,15 +2,10 @@ using System.IO; using System.Threading.Tasks; using CoffeeCard.Common.Configuration; -using CoffeeCard.Models.DataTransferObjects.Purchase; -using CoffeeCard.Models.DataTransferObjects.User; using CoffeeCard.Models.Entities; using Microsoft.AspNetCore.Hosting; using MimeKit; -using RestSharp; -using RestSharp.Authenticators; using Serilog; -using TimeZoneConverter; namespace CoffeeCard.Library.Services.v2 { @@ -42,8 +37,6 @@ public async Task SendMagicLink(User user, string magicLink, LoginType loginType var deeplink = loginType.GetDeepLink(baseUrl, magicLink); - Console.WriteLine($"MAGIC LINK HREF: {deeplink}"); - builder = BuildMagicLinkEmail(builder, user.Email, user.Name, deeplink); message.To.Add(new MailboxAddress(user.Name, user.Email)); diff --git a/coffeecard/CoffeeCard.Library/Services/v2/IEmailService.cs b/coffeecard/CoffeeCard.Library/Services/v2/IEmailService.cs index e075256e..721eb903 100644 --- a/coffeecard/CoffeeCard.Library/Services/v2/IEmailService.cs +++ b/coffeecard/CoffeeCard.Library/Services/v2/IEmailService.cs @@ -1,6 +1,4 @@ using System.Threading.Tasks; -using CoffeeCard.Models.DataTransferObjects.Purchase; -using CoffeeCard.Models.DataTransferObjects.User; using CoffeeCard.Models.Entities; namespace CoffeeCard.Library.Services.v2 diff --git a/coffeecard/CoffeeCard.Library/Services/v2/TokenService.cs b/coffeecard/CoffeeCard.Library/Services/v2/TokenService.cs index 683c5b29..37b99f49 100644 --- a/coffeecard/CoffeeCard.Library/Services/v2/TokenService.cs +++ b/coffeecard/CoffeeCard.Library/Services/v2/TokenService.cs @@ -1,10 +1,8 @@ using System; using System.Linq; using System.Threading.Tasks; -using CoffeeCard.Common.Configuration; using CoffeeCard.Common.Errors; using CoffeeCard.Library.Persistence; -using CoffeeCard.Library.Utils; using CoffeeCard.Models.Entities; using Microsoft.EntityFrameworkCore; diff --git a/coffeecard/CoffeeCard.Tests.Unit/Services/v2/TokenServiceTests.cs b/coffeecard/CoffeeCard.Tests.Unit/Services/v2/TokenServiceTests.cs index 77b1da75..2dbf976a 100644 --- a/coffeecard/CoffeeCard.Tests.Unit/Services/v2/TokenServiceTests.cs +++ b/coffeecard/CoffeeCard.Tests.Unit/Services/v2/TokenServiceTests.cs @@ -1,19 +1,12 @@ using System; -using System.Collections.Generic; -using System.IdentityModel.Tokens.Jwt; using System.Linq; -using System.Security.Claims; -using System.Text; using System.Threading.Tasks; using CoffeeCard.Common.Configuration; using CoffeeCard.Common.Errors; using CoffeeCard.Library.Persistence; using CoffeeCard.Library.Services; -using CoffeeCard.Library.Services.v2; using CoffeeCard.Models.Entities; using Microsoft.EntityFrameworkCore; -using Microsoft.Extensions.Options; -using Microsoft.IdentityModel.Tokens; using Moq; using Xunit; using TokenService = CoffeeCard.Library.Services.v2.TokenService;