Skip to content

Commit

Permalink
refactor: Remove unused methods and usings
Browse files Browse the repository at this point in the history
  • Loading branch information
sabihoshi committed Jan 8, 2022
1 parent 00f3925 commit d7fa591
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 44 deletions.
1 change: 0 additions & 1 deletion Zhongli.Bot/Modules/GeneralModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using Humanizer;
using Zhongli.Services.Core.Preconditions.Commands;
using Zhongli.Services.Evaluation;
Expand Down
2 changes: 1 addition & 1 deletion Zhongli.Services/Moderation/ModerationActionExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Discord;
using Zhongli.Data.Models.Discord;
using Zhongli.Data.Models.Moderation.Infractions;
using static Zhongli.Services.Utilities.DateTimeExtensions;
using Zhongli.Services.Utilities;

namespace Zhongli.Services.Moderation;

Expand Down
3 changes: 1 addition & 2 deletions Zhongli.Services/Moderation/ModerationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using Discord;
using Discord.Net;
using Discord.WebSocket;
using Hangfire;
using Zhongli.Data;
using Zhongli.Data.Models.Discord;
using Zhongli.Data.Models.Moderation.Infractions;
Expand Down Expand Up @@ -366,7 +365,7 @@ private async Task ExpireReprimandAsync(ExpirableReprimand reprimand, ReprimandS
details = new ReprimandDetails(user, guild.CurrentUser, $"[Reprimand {status}]");
}

reprimand.EndedAt ??= DateTimeOffset.UtcNow;
reprimand.EndedAt ??= DateTimeOffset.UtcNow;
await UpdateReprimandAsync(reprimand, status, details, cancellationToken);
}

Expand Down
17 changes: 0 additions & 17 deletions Zhongli.Services/Utilities/NotificationContext.cs

This file was deleted.

23 changes: 0 additions & 23 deletions Zhongli.Services/Utilities/SequenceEqualityComparer.cs

This file was deleted.

0 comments on commit d7fa591

Please sign in to comment.