From a188c64a0e01863b8ec5c815d5713352c0fe8b12 Mon Sep 17 00:00:00 2001 From: Ske Date: Wed, 17 Jul 2019 13:38:23 +0200 Subject: [PATCH] Clean up unused imports --- PluralKit.API/Controllers/MemberController.cs | 1 - PluralKit.API/Controllers/SystemController.cs | 2 -- PluralKit.API/Program.cs | 9 +-------- PluralKit.API/Startup.cs | 14 +------------- PluralKit.API/TokenAuthService.cs | 1 - PluralKit.Bot/Bot.cs | 9 --------- PluralKit.Bot/Commands/ImportExportCommands.cs | 1 - PluralKit.Bot/Commands/MemberCommands.cs | 3 --- PluralKit.Bot/Commands/MiscCommands.cs | 1 - PluralKit.Bot/Commands/SwitchCommands.cs | 1 - PluralKit.Bot/Commands/SystemCommands.cs | 4 ---- PluralKit.Bot/Errors.cs | 1 - PluralKit.Bot/Services/EmbedService.cs | 1 - PluralKit.Bot/Services/LogChannelService.cs | 1 - PluralKit.Bot/Services/ProxyService.cs | 2 -- PluralKit.Bot/Services/WebhookCacheService.cs | 1 - PluralKit.Bot/Utils.cs | 4 ---- PluralKit.Core/DataFiles.cs | 1 - PluralKit.Core/Stores.cs | 5 ----- PluralKit.Web/Pages/Error.cshtml.cs | 4 ---- PluralKit.Web/Pages/Index.cshtml.cs | 7 +------ 21 files changed, 3 insertions(+), 70 deletions(-) diff --git a/PluralKit.API/Controllers/MemberController.cs b/PluralKit.API/Controllers/MemberController.cs index 95befa11..ffb69480 100644 --- a/PluralKit.API/Controllers/MemberController.cs +++ b/PluralKit.API/Controllers/MemberController.cs @@ -1,4 +1,3 @@ -using System.Data; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using PluralKit.Core; diff --git a/PluralKit.API/Controllers/SystemController.cs b/PluralKit.API/Controllers/SystemController.cs index faecd8e9..436d1f5d 100644 --- a/PluralKit.API/Controllers/SystemController.cs +++ b/PluralKit.API/Controllers/SystemController.cs @@ -1,6 +1,4 @@ -using System; using System.Collections.Generic; -using System.Data; using System.Linq; using System.Threading.Tasks; using Dapper; diff --git a/PluralKit.API/Program.cs b/PluralKit.API/Program.cs index 160e0de6..9108fd1b 100644 --- a/PluralKit.API/Program.cs +++ b/PluralKit.API/Program.cs @@ -1,12 +1,5 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore; +using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Logging; namespace PluralKit.API { diff --git a/PluralKit.API/Startup.cs b/PluralKit.API/Startup.cs index 3d34dd77..0165154d 100644 --- a/PluralKit.API/Startup.cs +++ b/PluralKit.API/Startup.cs @@ -1,20 +1,8 @@ -using System; -using System.Collections.Generic; -using System.Data; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Options; -using NodaTime; -using NodaTime.Serialization.JsonNet; -using Npgsql; namespace PluralKit.API { diff --git a/PluralKit.API/TokenAuthService.cs b/PluralKit.API/TokenAuthService.cs index 7bfda4ce..678ea8da 100644 --- a/PluralKit.API/TokenAuthService.cs +++ b/PluralKit.API/TokenAuthService.cs @@ -1,4 +1,3 @@ -using System; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; diff --git a/PluralKit.Bot/Bot.cs b/PluralKit.Bot/Bot.cs index 5daa3ed7..57f100cd 100644 --- a/PluralKit.Bot/Bot.cs +++ b/PluralKit.Bot/Bot.cs @@ -1,9 +1,5 @@ using System; using System.Collections.Generic; -using System.Data; -using System.Data.Common; -using System.Diagnostics; -using System.IO; using System.Linq; using System.Reflection; using System.Threading; @@ -15,12 +11,7 @@ using Discord.Commands; using Discord.WebSocket; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using NodaTime; -using Npgsql; -using Npgsql.Logging; -using PluralKit.Core; using Sentry; -using Sentry.Extensibility; namespace PluralKit.Bot { diff --git a/PluralKit.Bot/Commands/ImportExportCommands.cs b/PluralKit.Bot/Commands/ImportExportCommands.cs index 8f05a00b..eb2690f1 100644 --- a/PluralKit.Bot/Commands/ImportExportCommands.cs +++ b/PluralKit.Bot/Commands/ImportExportCommands.cs @@ -1,4 +1,3 @@ -using System; using System.IO; using System.Linq; using System.Net.Http; diff --git a/PluralKit.Bot/Commands/MemberCommands.cs b/PluralKit.Bot/Commands/MemberCommands.cs index c00a3607..444a0a4a 100644 --- a/PluralKit.Bot/Commands/MemberCommands.cs +++ b/PluralKit.Bot/Commands/MemberCommands.cs @@ -1,13 +1,10 @@ -using System; using System.Linq; -using System.Net.Http; using System.Text.RegularExpressions; using System.Threading.Tasks; using Discord; using Discord.Commands; using NodaTime; using PluralKit.Core; -using Image = SixLabors.ImageSharp.Image; namespace PluralKit.Bot.Commands { diff --git a/PluralKit.Bot/Commands/MiscCommands.cs b/PluralKit.Bot/Commands/MiscCommands.cs index 7b3ba7c9..8cf76336 100644 --- a/PluralKit.Bot/Commands/MiscCommands.cs +++ b/PluralKit.Bot/Commands/MiscCommands.cs @@ -1,7 +1,6 @@ using System.Linq; using System.Threading.Tasks; using App.Metrics; -using App.Metrics.Meter; using Discord; using Discord.Commands; diff --git a/PluralKit.Bot/Commands/SwitchCommands.cs b/PluralKit.Bot/Commands/SwitchCommands.cs index 8568e11f..981f1174 100644 --- a/PluralKit.Bot/Commands/SwitchCommands.cs +++ b/PluralKit.Bot/Commands/SwitchCommands.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; diff --git a/PluralKit.Bot/Commands/SystemCommands.cs b/PluralKit.Bot/Commands/SystemCommands.cs index 080c0eda..0ab7ec1b 100644 --- a/PluralKit.Bot/Commands/SystemCommands.cs +++ b/PluralKit.Bot/Commands/SystemCommands.cs @@ -1,13 +1,9 @@ using System; using System.Linq; -using System.Runtime.Serialization; -using System.Text.RegularExpressions; using System.Threading.Tasks; -using Dapper; using Discord; using Discord.Commands; using NodaTime; -using NodaTime.Extensions; using NodaTime.Text; using NodaTime.TimeZones; using PluralKit.Core; diff --git a/PluralKit.Bot/Errors.cs b/PluralKit.Bot/Errors.cs index 7425f31c..a1c7cb99 100644 --- a/PluralKit.Bot/Errors.cs +++ b/PluralKit.Bot/Errors.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Linq; using System.Net; diff --git a/PluralKit.Bot/Services/EmbedService.cs b/PluralKit.Bot/Services/EmbedService.cs index 35b1f3e4..3d2fcf12 100644 --- a/PluralKit.Bot/Services/EmbedService.cs +++ b/PluralKit.Bot/Services/EmbedService.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.Globalization; using System.Linq; using System.Threading.Tasks; using Discord; diff --git a/PluralKit.Bot/Services/LogChannelService.cs b/PluralKit.Bot/Services/LogChannelService.cs index fbcd36ac..966320a3 100644 --- a/PluralKit.Bot/Services/LogChannelService.cs +++ b/PluralKit.Bot/Services/LogChannelService.cs @@ -1,4 +1,3 @@ -using System.Data; using System.Threading.Tasks; using Dapper; using Discord; diff --git a/PluralKit.Bot/Services/ProxyService.cs b/PluralKit.Bot/Services/ProxyService.cs index 779f14e6..1fba8630 100644 --- a/PluralKit.Bot/Services/ProxyService.cs +++ b/PluralKit.Bot/Services/ProxyService.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; -using System.Data; using System.Linq; -using System.Net; using System.Net.Http; using System.Text.RegularExpressions; using System.Threading.Tasks; diff --git a/PluralKit.Bot/Services/WebhookCacheService.cs b/PluralKit.Bot/Services/WebhookCacheService.cs index 8ea52dc7..9c72cab0 100644 --- a/PluralKit.Bot/Services/WebhookCacheService.cs +++ b/PluralKit.Bot/Services/WebhookCacheService.cs @@ -3,7 +3,6 @@ using System.Collections.Concurrent; using System.Linq; using System.Threading.Tasks; using Discord; -using Discord.WebSocket; namespace PluralKit.Bot { diff --git a/PluralKit.Bot/Utils.cs b/PluralKit.Bot/Utils.cs index 911797df..ce121810 100644 --- a/PluralKit.Bot/Utils.cs +++ b/PluralKit.Bot/Utils.cs @@ -1,18 +1,14 @@ using System; -using System.Collections.Generic; -using System.Data; using System.Globalization; using System.Linq; using System.Net.Http; using System.Text.RegularExpressions; using System.Threading.Tasks; -using Dapper; using Discord; using Discord.Commands; using Discord.Commands.Builders; using Discord.WebSocket; using Microsoft.Extensions.DependencyInjection; -using NodaTime; using PluralKit.Core; using Image = SixLabors.ImageSharp.Image; diff --git a/PluralKit.Core/DataFiles.cs b/PluralKit.Core/DataFiles.cs index 0e37342a..38799b3d 100644 --- a/PluralKit.Core/DataFiles.cs +++ b/PluralKit.Core/DataFiles.cs @@ -3,7 +3,6 @@ using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json; using NodaTime; -using NodaTime.Text; namespace PluralKit.Bot { diff --git a/PluralKit.Core/Stores.cs b/PluralKit.Core/Stores.cs index 347d68e6..f664059d 100644 --- a/PluralKit.Core/Stores.cs +++ b/PluralKit.Core/Stores.cs @@ -1,12 +1,7 @@ -using System; -using System.Collections; using System.Collections.Generic; -using System.Data; using System.Linq; -using System.Threading; using System.Threading.Tasks; using Dapper; -using Dapper.Contrib.Extensions; using NodaTime; namespace PluralKit { diff --git a/PluralKit.Web/Pages/Error.cshtml.cs b/PluralKit.Web/Pages/Error.cshtml.cs index efaccc32..21723dc8 100644 --- a/PluralKit.Web/Pages/Error.cshtml.cs +++ b/PluralKit.Web/Pages/Error.cshtml.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; -using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; diff --git a/PluralKit.Web/Pages/Index.cshtml.cs b/PluralKit.Web/Pages/Index.cshtml.cs index 00158342..d585c7ad 100644 --- a/PluralKit.Web/Pages/Index.cshtml.cs +++ b/PluralKit.Web/Pages/Index.cshtml.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.RazorPages; +using Microsoft.AspNetCore.Mvc.RazorPages; namespace PluralKit.Web.Pages {