From f19c6e8ee1270ac3480c87a0eb93bdf0bcce494f Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 12 May 2023 19:23:28 +0300 Subject: [PATCH] Remove unused imports Close #3651 --- .editorconfig | 3 +++ src/Lidarr.Api.V1/Albums/AlbumControllerWithSignalR.cs | 1 - src/Lidarr.Api.V1/Commands/CommandController.cs | 1 - src/Lidarr.Api.V1/Indexers/ReleasePushController.cs | 1 - .../ManualImport/ManualImportUpdateResource.cs | 2 -- .../Profiles/Release/ReleaseProfileController.cs | 1 - src/Lidarr.Api.V1/Update/UpdateController.cs | 1 - src/Lidarr.Http/ApiInfoResource.cs | 4 ---- src/Lidarr.Http/ClientSchema/Field.cs | 1 - src/Lidarr.Http/Extensions/RequestExtensions.cs | 2 -- src/Lidarr.Http/Frontend/StaticResourceController.cs | 2 -- .../DiskTests/DiskTransferServiceFixture.cs | 1 - .../StringExtensionTests/IsValidIPAddressFixture.cs | 1 - src/NzbDrone.Common/Cache/Cached.cs | 3 +-- src/NzbDrone.Common/Composition/AssemblyLoader.cs | 2 -- src/NzbDrone.Common/Disk/IDiskProvider.cs | 2 -- src/NzbDrone.Common/Disk/OsPath.cs | 3 +-- src/NzbDrone.Common/EnvironmentInfo/AppFolderFactory.cs | 2 -- src/NzbDrone.Common/Http/UserAgentParser.cs | 6 ------ src/NzbDrone.Common/Instrumentation/CleanseLogMessage.cs | 1 - .../Instrumentation/GlobalExceptionHandlers.cs | 1 - .../Instrumentation/Sentry/SentryCleanser.cs | 1 - src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs | 2 -- src/NzbDrone.Common/PathEqualityComparer.cs | 1 - src/NzbDrone.Common/ServiceProvider.cs | 1 - src/NzbDrone.Console/ConsoleApp.cs | 2 -- src/NzbDrone.Core.Test/Datastore/LazyLoadingFixture.cs | 1 - .../Migration/051_cdh_per_downloadclientFixture.cs | 1 - .../Datastore/Migration/063_add_custom_formatsFixture.cs | 1 - .../DecisionEngineTests/RepackSpecificationFixture.cs | 1 - .../DecisionEngineTests/UpgradeDiskSpecificationFixture.cs | 1 - .../NotificationTests/Xbmc/GetArtistPathFixture.cs | 1 - .../FileNameBuilderTests/FileNameBuilderFixture.cs | 1 - src/NzbDrone.Core/Authentication/UserService.cs | 4 ---- src/NzbDrone.Core/CustomFormats/CustomFormatInput.cs | 2 -- src/NzbDrone.Core/CustomFormats/CustomFormatService.cs | 3 +-- .../Specifications/ICustomFormatSpecification.cs | 1 - .../Datastore/Migration/053_add_update_history.cs | 3 --- ...61_postgres_update_timestamp_columns_to_with_timezone.cs | 2 -- src/NzbDrone.Core/Datastore/WhereBuilder.cs | 3 +-- .../DecisionEngine/Specifications/CutoffSpecification.cs | 1 - .../DecisionEngine/Specifications/QueueSpecification.cs | 1 - .../Specifications/ReleaseRestrictionsSpecification.cs | 1 - .../Specifications/RssSync/DeletedTrackFileSpecification.cs | 1 - .../Specifications/RssSync/HistorySpecification.cs | 1 - src/NzbDrone.Core/Download/Clients/Deluge/DelugeLabel.cs | 5 ----- .../Clients/DownloadStation/DownloadStation2Task.cs | 4 ---- .../Proxies/DownloadStationTaskProxySelector.cs | 3 +-- .../Clients/QBittorrent/QBittorrentProxySelector.cs | 2 -- src/NzbDrone.Core/Download/Extensions/XmlExtensions.cs | 1 - .../Download/History/DownloadHistoryService.cs | 1 - src/NzbDrone.Core/Download/NzbValidationService.cs | 1 - src/NzbDrone.Core/Download/UsenetClientBase.cs | 1 - src/NzbDrone.Core/Extras/ExtraService.cs | 1 - src/NzbDrone.Core/Extras/Metadata/MetadataFactory.cs | 1 - src/NzbDrone.Core/HealthCheck/EventDrivenHealthCheck.cs | 1 - .../ImportLists/FetchAndParseImportListService.cs | 1 - src/NzbDrone.Core/ImportLists/ImportListBase.cs | 1 - src/NzbDrone.Core/ImportLists/ImportListFactory.cs | 1 - src/NzbDrone.Core/Indexers/FileList/FileListParser.cs | 1 - .../Indexers/Headphones/HeadphonesCapabilitiesProvider.cs | 1 - src/NzbDrone.Core/Indexers/IndexerFactory.cs | 1 - .../Newznab/NewznabCategoryFieldOptionsConverter.cs | 1 - src/NzbDrone.Core/Indexers/Torznab/Torznab.cs | 1 - src/NzbDrone.Core/MediaFiles/MediaFileRepository.cs | 1 - src/NzbDrone.Core/MediaFiles/MediaFileService.cs | 1 - src/NzbDrone.Core/MediaFiles/TrackFileMovingService.cs | 1 - src/NzbDrone.Core/Music/Repositories/ReleaseRepository.cs | 1 - .../Music/Services/RefreshAlbumReleaseService.cs | 1 - src/NzbDrone.Core/Music/Services/RefreshAlbumService.cs | 1 - .../Music/Services/RefreshEntityServiceBase.cs | 1 - src/NzbDrone.Core/Notifications/ArtistDeleteMessage.cs | 1 - src/NzbDrone.Core/Notifications/Email/Email.cs | 1 - src/NzbDrone.Core/Notifications/NotificationFactory.cs | 1 - .../Notifications/Plex/PlexTv/PlexTvService.cs | 1 - .../Notifications/Webhook/WebhookDownloadFailurePayload.cs | 2 -- src/NzbDrone.Core/Notifications/Xbmc/Model/KodiSource.cs | 2 -- src/NzbDrone.Core/Organizer/FileNameBuilder.cs | 1 - src/NzbDrone.Core/Organizer/FileNameValidation.cs | 1 - src/NzbDrone.Core/Parser/Model/LocalAlbumRelease.cs | 1 - src/NzbDrone.Core/Parser/QualityParser.cs | 2 -- src/NzbDrone.Core/ThingiProvider/ProviderFactory.cs | 1 - src/NzbDrone.Core/Update/History/UpdateHistoryRepository.cs | 2 -- src/NzbDrone.Core/Update/RecentUpdateProvider.cs | 1 - src/NzbDrone.Core/Update/UpdatePackage.cs | 1 - src/NzbDrone.Core/Update/UpdatePackageProvider.cs | 3 +-- src/NzbDrone.Host/AppLifetime.cs | 1 - src/NzbDrone.Host/Startup.cs | 1 - .../ApiTests/WantedTests/MissingFixture.cs | 1 - src/NzbDrone.Integration.Test/IndexHtmlFixture.cs | 2 -- src/NzbDrone.Integration.Test/IntegrationTest.cs | 3 --- src/NzbDrone.Windows/Disk/FolderMount.cs | 1 - 92 files changed, 9 insertions(+), 135 deletions(-) diff --git a/.editorconfig b/.editorconfig index a78530bfe..6785f4a36 100644 --- a/.editorconfig +++ b/.editorconfig @@ -44,6 +44,9 @@ csharp_style_var_for_built_in_types = true:suggestion csharp_style_var_when_type_is_apparent = true:suggestion csharp_style_var_elsewhere = true:suggestion +# Using directive is unnecessary. +dotnet_diagnostic.IDE0005.severity = error + # Stylecop Rules dotnet_diagnostic.SA0001.severity = none dotnet_diagnostic.SA1025.severity = none diff --git a/src/Lidarr.Api.V1/Albums/AlbumControllerWithSignalR.cs b/src/Lidarr.Api.V1/Albums/AlbumControllerWithSignalR.cs index 50a197546..5a7d33b2d 100644 --- a/src/Lidarr.Api.V1/Albums/AlbumControllerWithSignalR.cs +++ b/src/Lidarr.Api.V1/Albums/AlbumControllerWithSignalR.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Linq; using Lidarr.Api.V1.Artist; using Lidarr.Http.REST; -using NzbDrone.Common.Extensions; using NzbDrone.Core.ArtistStats; using NzbDrone.Core.DecisionEngine.Specifications; using NzbDrone.Core.MediaCover; diff --git a/src/Lidarr.Api.V1/Commands/CommandController.cs b/src/Lidarr.Api.V1/Commands/CommandController.cs index 0c444c97a..e01b7d13b 100644 --- a/src/Lidarr.Api.V1/Commands/CommandController.cs +++ b/src/Lidarr.Api.V1/Commands/CommandController.cs @@ -7,7 +7,6 @@ using Lidarr.Http.REST; using Lidarr.Http.REST.Attributes; using Lidarr.Http.Validation; using Microsoft.AspNetCore.Mvc; -using NzbDrone.Common; using NzbDrone.Common.Composition; using NzbDrone.Common.Serializer; using NzbDrone.Common.TPL; diff --git a/src/Lidarr.Api.V1/Indexers/ReleasePushController.cs b/src/Lidarr.Api.V1/Indexers/ReleasePushController.cs index 1b027185f..1a5e4439b 100644 --- a/src/Lidarr.Api.V1/Indexers/ReleasePushController.cs +++ b/src/Lidarr.Api.V1/Indexers/ReleasePushController.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using System.Linq; -using System.Threading; using FluentValidation; using FluentValidation.Results; using Lidarr.Http; diff --git a/src/Lidarr.Api.V1/ManualImport/ManualImportUpdateResource.cs b/src/Lidarr.Api.V1/ManualImport/ManualImportUpdateResource.cs index c544b3500..84a513807 100644 --- a/src/Lidarr.Api.V1/ManualImport/ManualImportUpdateResource.cs +++ b/src/Lidarr.Api.V1/ManualImport/ManualImportUpdateResource.cs @@ -1,9 +1,7 @@ using System.Collections.Generic; -using Lidarr.Api.V1.Albums; using Lidarr.Api.V1.Tracks; using Lidarr.Http.REST; using NzbDrone.Core.DecisionEngine; -using NzbDrone.Core.Languages; using NzbDrone.Core.Qualities; namespace Lidarr.Api.V1.ManualImport diff --git a/src/Lidarr.Api.V1/Profiles/Release/ReleaseProfileController.cs b/src/Lidarr.Api.V1/Profiles/Release/ReleaseProfileController.cs index 192b51d49..73b49d191 100644 --- a/src/Lidarr.Api.V1/Profiles/Release/ReleaseProfileController.cs +++ b/src/Lidarr.Api.V1/Profiles/Release/ReleaseProfileController.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.Linq; using FluentValidation; using Lidarr.Http; using Lidarr.Http.REST; diff --git a/src/Lidarr.Api.V1/Update/UpdateController.cs b/src/Lidarr.Api.V1/Update/UpdateController.cs index cf337d5f3..e6a6549ac 100644 --- a/src/Lidarr.Api.V1/Update/UpdateController.cs +++ b/src/Lidarr.Api.V1/Update/UpdateController.cs @@ -3,7 +3,6 @@ using System.Linq; using Lidarr.Http; using Microsoft.AspNetCore.Mvc; using NzbDrone.Common.EnvironmentInfo; -using NzbDrone.Common.Extensions; using NzbDrone.Core.Update; using NzbDrone.Core.Update.History; diff --git a/src/Lidarr.Http/ApiInfoResource.cs b/src/Lidarr.Http/ApiInfoResource.cs index f516daabf..89f22c471 100644 --- a/src/Lidarr.Http/ApiInfoResource.cs +++ b/src/Lidarr.Http/ApiInfoResource.cs @@ -1,8 +1,4 @@ -using System; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Lidarr.Http { diff --git a/src/Lidarr.Http/ClientSchema/Field.cs b/src/Lidarr.Http/ClientSchema/Field.cs index 4d7861818..126b5e1c8 100644 --- a/src/Lidarr.Http/ClientSchema/Field.cs +++ b/src/Lidarr.Http/ClientSchema/Field.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using NzbDrone.Core.Annotations; namespace Lidarr.Http.ClientSchema { diff --git a/src/Lidarr.Http/Extensions/RequestExtensions.cs b/src/Lidarr.Http/Extensions/RequestExtensions.cs index 146cf053f..47e6c1542 100644 --- a/src/Lidarr.Http/Extensions/RequestExtensions.cs +++ b/src/Lidarr.Http/Extensions/RequestExtensions.cs @@ -1,10 +1,8 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Net; using Microsoft.AspNetCore.Http; using NzbDrone.Common.EnvironmentInfo; -using NzbDrone.Common.Extensions; using NzbDrone.Core.Datastore; using NzbDrone.Core.Exceptions; diff --git a/src/Lidarr.Http/Frontend/StaticResourceController.cs b/src/Lidarr.Http/Frontend/StaticResourceController.cs index d5d293746..27ae50466 100644 --- a/src/Lidarr.Http/Frontend/StaticResourceController.cs +++ b/src/Lidarr.Http/Frontend/StaticResourceController.cs @@ -6,8 +6,6 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Cors; using Microsoft.AspNetCore.Mvc; using NLog; -using NzbDrone.Common.EnvironmentInfo; -using NzbDrone.Core.Configuration; namespace Lidarr.Http.Frontend { diff --git a/src/NzbDrone.Common.Test/DiskTests/DiskTransferServiceFixture.cs b/src/NzbDrone.Common.Test/DiskTests/DiskTransferServiceFixture.cs index 542138ca1..83540042a 100644 --- a/src/NzbDrone.Common.Test/DiskTests/DiskTransferServiceFixture.cs +++ b/src/NzbDrone.Common.Test/DiskTests/DiskTransferServiceFixture.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.IO; using System.IO.Abstractions; diff --git a/src/NzbDrone.Common.Test/ExtensionTests/StringExtensionTests/IsValidIPAddressFixture.cs b/src/NzbDrone.Common.Test/ExtensionTests/StringExtensionTests/IsValidIPAddressFixture.cs index 0e2ac3d63..8a049f068 100644 --- a/src/NzbDrone.Common.Test/ExtensionTests/StringExtensionTests/IsValidIPAddressFixture.cs +++ b/src/NzbDrone.Common.Test/ExtensionTests/StringExtensionTests/IsValidIPAddressFixture.cs @@ -1,4 +1,3 @@ -using System.Globalization; using FluentAssertions; using NUnit.Framework; using NzbDrone.Common.Extensions; diff --git a/src/NzbDrone.Common/Cache/Cached.cs b/src/NzbDrone.Common/Cache/Cached.cs index b0dfc3eb2..a530baa55 100644 --- a/src/NzbDrone.Common/Cache/Cached.cs +++ b/src/NzbDrone.Common/Cache/Cached.cs @@ -1,9 +1,8 @@ -using System; +using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using NzbDrone.Common.EnsureThat; -using NzbDrone.Common.Extensions; namespace NzbDrone.Common.Cache { diff --git a/src/NzbDrone.Common/Composition/AssemblyLoader.cs b/src/NzbDrone.Common/Composition/AssemblyLoader.cs index 1b50af2bd..c581d8cc3 100644 --- a/src/NzbDrone.Common/Composition/AssemblyLoader.cs +++ b/src/NzbDrone.Common/Composition/AssemblyLoader.cs @@ -5,8 +5,6 @@ using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.Loader; -using System.Text; -using System.Threading.Tasks; using NzbDrone.Common.EnvironmentInfo; namespace NzbDrone.Common.Composition diff --git a/src/NzbDrone.Common/Disk/IDiskProvider.cs b/src/NzbDrone.Common/Disk/IDiskProvider.cs index d418abbcc..a689edf0a 100644 --- a/src/NzbDrone.Common/Disk/IDiskProvider.cs +++ b/src/NzbDrone.Common/Disk/IDiskProvider.cs @@ -2,8 +2,6 @@ using System; using System.Collections.Generic; using System.IO; using System.IO.Abstractions; -using System.Security.AccessControl; -using System.Security.Principal; namespace NzbDrone.Common.Disk { diff --git a/src/NzbDrone.Common/Disk/OsPath.cs b/src/NzbDrone.Common/Disk/OsPath.cs index 983313313..8d8dcf2f9 100644 --- a/src/NzbDrone.Common/Disk/OsPath.cs +++ b/src/NzbDrone.Common/Disk/OsPath.cs @@ -1,6 +1,5 @@ -using System; +using System; using System.Collections.Generic; -using System.Linq; using NzbDrone.Common.Extensions; namespace NzbDrone.Common.Disk diff --git a/src/NzbDrone.Common/EnvironmentInfo/AppFolderFactory.cs b/src/NzbDrone.Common/EnvironmentInfo/AppFolderFactory.cs index 40470ece5..cfaa1ddff 100644 --- a/src/NzbDrone.Common/EnvironmentInfo/AppFolderFactory.cs +++ b/src/NzbDrone.Common/EnvironmentInfo/AppFolderFactory.cs @@ -1,7 +1,5 @@ using System; using System.IO; -using System.Security.AccessControl; -using System.Security.Principal; using NLog; using NzbDrone.Common.Disk; using NzbDrone.Common.Exceptions; diff --git a/src/NzbDrone.Common/Http/UserAgentParser.cs b/src/NzbDrone.Common/Http/UserAgentParser.cs index 2c382236a..0a31410f2 100644 --- a/src/NzbDrone.Common/Http/UserAgentParser.cs +++ b/src/NzbDrone.Common/Http/UserAgentParser.cs @@ -1,9 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - namespace NzbDrone.Common.Http { public static class UserAgentParser diff --git a/src/NzbDrone.Common/Instrumentation/CleanseLogMessage.cs b/src/NzbDrone.Common/Instrumentation/CleanseLogMessage.cs index aa9692fb0..cf9d4cc3d 100644 --- a/src/NzbDrone.Common/Instrumentation/CleanseLogMessage.cs +++ b/src/NzbDrone.Common/Instrumentation/CleanseLogMessage.cs @@ -1,4 +1,3 @@ -using System; using System.Linq; using System.Net; using System.Text.RegularExpressions; diff --git a/src/NzbDrone.Common/Instrumentation/GlobalExceptionHandlers.cs b/src/NzbDrone.Common/Instrumentation/GlobalExceptionHandlers.cs index 50ede78a5..bd4d2c187 100644 --- a/src/NzbDrone.Common/Instrumentation/GlobalExceptionHandlers.cs +++ b/src/NzbDrone.Common/Instrumentation/GlobalExceptionHandlers.cs @@ -1,7 +1,6 @@ using System; using System.Threading.Tasks; using NLog; -using NzbDrone.Common.EnvironmentInfo; namespace NzbDrone.Common.Instrumentation { diff --git a/src/NzbDrone.Common/Instrumentation/Sentry/SentryCleanser.cs b/src/NzbDrone.Common/Instrumentation/Sentry/SentryCleanser.cs index a56e57376..85175b426 100644 --- a/src/NzbDrone.Common/Instrumentation/Sentry/SentryCleanser.cs +++ b/src/NzbDrone.Common/Instrumentation/Sentry/SentryCleanser.cs @@ -1,7 +1,6 @@ using System; using System.Linq; using Sentry; -using Sentry.Protocol; namespace NzbDrone.Common.Instrumentation.Sentry { diff --git a/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs b/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs index 27082230e..79339339b 100644 --- a/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs +++ b/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs @@ -9,9 +9,7 @@ using NLog; using NLog.Common; using NLog.Targets; using NzbDrone.Common.EnvironmentInfo; -using NzbDrone.Common.Extensions; using Sentry; -using Sentry.Protocol; namespace NzbDrone.Common.Instrumentation.Sentry { diff --git a/src/NzbDrone.Common/PathEqualityComparer.cs b/src/NzbDrone.Common/PathEqualityComparer.cs index 958b700db..5b9c3aa1c 100644 --- a/src/NzbDrone.Common/PathEqualityComparer.cs +++ b/src/NzbDrone.Common/PathEqualityComparer.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using NzbDrone.Common.Disk; using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Common.Extensions; diff --git a/src/NzbDrone.Common/ServiceProvider.cs b/src/NzbDrone.Common/ServiceProvider.cs index 8f9f4ee90..5c49b49e0 100644 --- a/src/NzbDrone.Common/ServiceProvider.cs +++ b/src/NzbDrone.Common/ServiceProvider.cs @@ -1,5 +1,4 @@ using System; -using System.Diagnostics; using System.Linq; using System.ServiceProcess; using NLog; diff --git a/src/NzbDrone.Console/ConsoleApp.cs b/src/NzbDrone.Console/ConsoleApp.cs index cf1c5297f..f849158f1 100644 --- a/src/NzbDrone.Console/ConsoleApp.cs +++ b/src/NzbDrone.Console/ConsoleApp.cs @@ -2,8 +2,6 @@ using System; using System.IO; using System.Net.Sockets; using Microsoft.AspNetCore.Connections; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Hosting; using NLog; using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Common.Exceptions; diff --git a/src/NzbDrone.Core.Test/Datastore/LazyLoadingFixture.cs b/src/NzbDrone.Core.Test/Datastore/LazyLoadingFixture.cs index 427f62f2b..abe519b0a 100644 --- a/src/NzbDrone.Core.Test/Datastore/LazyLoadingFixture.cs +++ b/src/NzbDrone.Core.Test/Datastore/LazyLoadingFixture.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using System.Linq; -using Dapper; using FizzWare.NBuilder; using NUnit.Framework; using NzbDrone.Core.Datastore; diff --git a/src/NzbDrone.Core.Test/Datastore/Migration/051_cdh_per_downloadclientFixture.cs b/src/NzbDrone.Core.Test/Datastore/Migration/051_cdh_per_downloadclientFixture.cs index 9591947b3..ec1a21781 100644 --- a/src/NzbDrone.Core.Test/Datastore/Migration/051_cdh_per_downloadclientFixture.cs +++ b/src/NzbDrone.Core.Test/Datastore/Migration/051_cdh_per_downloadclientFixture.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.Linq; using System.Text.Json; using FluentAssertions; diff --git a/src/NzbDrone.Core.Test/Datastore/Migration/063_add_custom_formatsFixture.cs b/src/NzbDrone.Core.Test/Datastore/Migration/063_add_custom_formatsFixture.cs index 0136e1f2e..74e8efa2b 100644 --- a/src/NzbDrone.Core.Test/Datastore/Migration/063_add_custom_formatsFixture.cs +++ b/src/NzbDrone.Core.Test/Datastore/Migration/063_add_custom_formatsFixture.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Linq; using FluentAssertions; diff --git a/src/NzbDrone.Core.Test/DecisionEngineTests/RepackSpecificationFixture.cs b/src/NzbDrone.Core.Test/DecisionEngineTests/RepackSpecificationFixture.cs index dc3f6713a..06baa1420 100644 --- a/src/NzbDrone.Core.Test/DecisionEngineTests/RepackSpecificationFixture.cs +++ b/src/NzbDrone.Core.Test/DecisionEngineTests/RepackSpecificationFixture.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Linq; using FizzWare.NBuilder; diff --git a/src/NzbDrone.Core.Test/DecisionEngineTests/UpgradeDiskSpecificationFixture.cs b/src/NzbDrone.Core.Test/DecisionEngineTests/UpgradeDiskSpecificationFixture.cs index d6f144668..08225db89 100644 --- a/src/NzbDrone.Core.Test/DecisionEngineTests/UpgradeDiskSpecificationFixture.cs +++ b/src/NzbDrone.Core.Test/DecisionEngineTests/UpgradeDiskSpecificationFixture.cs @@ -5,7 +5,6 @@ using FluentAssertions; using Moq; using NUnit.Framework; using NzbDrone.Core.CustomFormats; -using NzbDrone.Core.DecisionEngine; using NzbDrone.Core.DecisionEngine.Specifications; using NzbDrone.Core.MediaFiles; using NzbDrone.Core.Music; diff --git a/src/NzbDrone.Core.Test/NotificationTests/Xbmc/GetArtistPathFixture.cs b/src/NzbDrone.Core.Test/NotificationTests/Xbmc/GetArtistPathFixture.cs index 8a15cf60c..7109de15d 100644 --- a/src/NzbDrone.Core.Test/NotificationTests/Xbmc/GetArtistPathFixture.cs +++ b/src/NzbDrone.Core.Test/NotificationTests/Xbmc/GetArtistPathFixture.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using System.Linq; -using DryIoc.ImTools; using FizzWare.NBuilder; using FluentAssertions; using NUnit.Framework; diff --git a/src/NzbDrone.Core.Test/OrganizerTests/FileNameBuilderTests/FileNameBuilderFixture.cs b/src/NzbDrone.Core.Test/OrganizerTests/FileNameBuilderTests/FileNameBuilderFixture.cs index 23003ed51..8dea21bc4 100644 --- a/src/NzbDrone.Core.Test/OrganizerTests/FileNameBuilderTests/FileNameBuilderFixture.cs +++ b/src/NzbDrone.Core.Test/OrganizerTests/FileNameBuilderTests/FileNameBuilderFixture.cs @@ -11,7 +11,6 @@ using NzbDrone.Core.Music; using NzbDrone.Core.Organizer; using NzbDrone.Core.Qualities; using NzbDrone.Core.Test.Framework; -using TagLib; namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests { diff --git a/src/NzbDrone.Core/Authentication/UserService.cs b/src/NzbDrone.Core/Authentication/UserService.cs index 44ba015c3..73f70aa5b 100644 --- a/src/NzbDrone.Core/Authentication/UserService.cs +++ b/src/NzbDrone.Core/Authentication/UserService.cs @@ -1,11 +1,7 @@ using System; -using System.Linq; -using System.Xml.Linq; using NzbDrone.Common.Disk; using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Common.Extensions; -using NzbDrone.Core.Lifecycle; -using NzbDrone.Core.Messaging.Events; namespace NzbDrone.Core.Authentication { diff --git a/src/NzbDrone.Core/CustomFormats/CustomFormatInput.cs b/src/NzbDrone.Core/CustomFormats/CustomFormatInput.cs index 5d9018070..83efff8bb 100644 --- a/src/NzbDrone.Core/CustomFormats/CustomFormatInput.cs +++ b/src/NzbDrone.Core/CustomFormats/CustomFormatInput.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; -using NzbDrone.Core.Languages; using NzbDrone.Core.Music; using NzbDrone.Core.Parser.Model; diff --git a/src/NzbDrone.Core/CustomFormats/CustomFormatService.cs b/src/NzbDrone.Core/CustomFormats/CustomFormatService.cs index 4ba022e44..5475ac5b8 100644 --- a/src/NzbDrone.Core/CustomFormats/CustomFormatService.cs +++ b/src/NzbDrone.Core/CustomFormats/CustomFormatService.cs @@ -1,8 +1,7 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using NzbDrone.Common.Cache; using NzbDrone.Core.CustomFormats.Events; -using NzbDrone.Core.Datastore; using NzbDrone.Core.Messaging.Events; namespace NzbDrone.Core.CustomFormats diff --git a/src/NzbDrone.Core/CustomFormats/Specifications/ICustomFormatSpecification.cs b/src/NzbDrone.Core/CustomFormats/Specifications/ICustomFormatSpecification.cs index 1ccdff791..d10d6dbc8 100644 --- a/src/NzbDrone.Core/CustomFormats/Specifications/ICustomFormatSpecification.cs +++ b/src/NzbDrone.Core/CustomFormats/Specifications/ICustomFormatSpecification.cs @@ -1,4 +1,3 @@ -using NzbDrone.Core.Parser.Model; using NzbDrone.Core.Validation; namespace NzbDrone.Core.CustomFormats diff --git a/src/NzbDrone.Core/Datastore/Migration/053_add_update_history.cs b/src/NzbDrone.Core/Datastore/Migration/053_add_update_history.cs index 6f81a1a5b..e7464ff99 100644 --- a/src/NzbDrone.Core/Datastore/Migration/053_add_update_history.cs +++ b/src/NzbDrone.Core/Datastore/Migration/053_add_update_history.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Data; using FluentMigrator; using NzbDrone.Core.Datastore.Migration.Framework; diff --git a/src/NzbDrone.Core/Datastore/Migration/061_postgres_update_timestamp_columns_to_with_timezone.cs b/src/NzbDrone.Core/Datastore/Migration/061_postgres_update_timestamp_columns_to_with_timezone.cs index 274d2e389..8dceff17e 100644 --- a/src/NzbDrone.Core/Datastore/Migration/061_postgres_update_timestamp_columns_to_with_timezone.cs +++ b/src/NzbDrone.Core/Datastore/Migration/061_postgres_update_timestamp_columns_to_with_timezone.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using FluentMigrator; using NzbDrone.Core.Datastore.Migration.Framework; diff --git a/src/NzbDrone.Core/Datastore/WhereBuilder.cs b/src/NzbDrone.Core/Datastore/WhereBuilder.cs index 0917e9d32..969364e4f 100644 --- a/src/NzbDrone.Core/Datastore/WhereBuilder.cs +++ b/src/NzbDrone.Core/Datastore/WhereBuilder.cs @@ -1,5 +1,4 @@ -using Dapper; -using NzbDrone.Common.Extensions; +using Dapper; namespace NzbDrone.Core.Datastore { diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/CutoffSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/CutoffSpecification.cs index b568cba11..7fcf5aae5 100644 --- a/src/NzbDrone.Core/DecisionEngine/Specifications/CutoffSpecification.cs +++ b/src/NzbDrone.Core/DecisionEngine/Specifications/CutoffSpecification.cs @@ -8,7 +8,6 @@ using NzbDrone.Core.IndexerSearch.Definitions; using NzbDrone.Core.MediaFiles; using NzbDrone.Core.Music; using NzbDrone.Core.Parser.Model; -using NzbDrone.Core.Profiles.Releases; namespace NzbDrone.Core.DecisionEngine.Specifications { diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/QueueSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/QueueSpecification.cs index d0e4ece3a..c56a6a4f8 100644 --- a/src/NzbDrone.Core/DecisionEngine/Specifications/QueueSpecification.cs +++ b/src/NzbDrone.Core/DecisionEngine/Specifications/QueueSpecification.cs @@ -5,7 +5,6 @@ using NzbDrone.Core.CustomFormats; using NzbDrone.Core.Download.TrackedDownloads; using NzbDrone.Core.IndexerSearch.Definitions; using NzbDrone.Core.Parser.Model; -using NzbDrone.Core.Profiles.Releases; using NzbDrone.Core.Qualities; using NzbDrone.Core.Queue; diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/ReleaseRestrictionsSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/ReleaseRestrictionsSpecification.cs index 6096942a1..32745423f 100644 --- a/src/NzbDrone.Core/DecisionEngine/Specifications/ReleaseRestrictionsSpecification.cs +++ b/src/NzbDrone.Core/DecisionEngine/Specifications/ReleaseRestrictionsSpecification.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Linq; using NLog; diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/DeletedTrackFileSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/DeletedTrackFileSpecification.cs index 6543cf139..9fc660da0 100644 --- a/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/DeletedTrackFileSpecification.cs +++ b/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/DeletedTrackFileSpecification.cs @@ -1,7 +1,6 @@ using System.Linq; using NLog; using NzbDrone.Common.Disk; -using NzbDrone.Common.Extensions; using NzbDrone.Core.Configuration; using NzbDrone.Core.IndexerSearch.Definitions; using NzbDrone.Core.MediaFiles; diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/HistorySpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/HistorySpecification.cs index 27715627f..e8e797991 100644 --- a/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/HistorySpecification.cs +++ b/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/HistorySpecification.cs @@ -7,7 +7,6 @@ using NzbDrone.Core.CustomFormats; using NzbDrone.Core.History; using NzbDrone.Core.IndexerSearch.Definitions; using NzbDrone.Core.Parser.Model; -using NzbDrone.Core.Profiles.Releases; using NzbDrone.Core.Qualities; namespace NzbDrone.Core.DecisionEngine.Specifications.RssSync diff --git a/src/NzbDrone.Core/Download/Clients/Deluge/DelugeLabel.cs b/src/NzbDrone.Core/Download/Clients/Deluge/DelugeLabel.cs index a5da831ab..3d95413c5 100644 --- a/src/NzbDrone.Core/Download/Clients/Deluge/DelugeLabel.cs +++ b/src/NzbDrone.Core/Download/Clients/Deluge/DelugeLabel.cs @@ -1,8 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using Newtonsoft.Json; namespace NzbDrone.Core.Download.Clients.Deluge diff --git a/src/NzbDrone.Core/Download/Clients/DownloadStation/DownloadStation2Task.cs b/src/NzbDrone.Core/Download/Clients/DownloadStation/DownloadStation2Task.cs index d760b3b25..71e2ac11a 100644 --- a/src/NzbDrone.Core/Download/Clients/DownloadStation/DownloadStation2Task.cs +++ b/src/NzbDrone.Core/Download/Clients/DownloadStation/DownloadStation2Task.cs @@ -1,7 +1,3 @@ -using System.Collections.Generic; -using Newtonsoft.Json; -using NzbDrone.Common.Serializer; - namespace NzbDrone.Core.Download.Clients.DownloadStation { public class DownloadStation2Task diff --git a/src/NzbDrone.Core/Download/Clients/DownloadStation/Proxies/DownloadStationTaskProxySelector.cs b/src/NzbDrone.Core/Download/Clients/DownloadStation/Proxies/DownloadStationTaskProxySelector.cs index 7a9531ccd..1eae7930e 100644 --- a/src/NzbDrone.Core/Download/Clients/DownloadStation/Proxies/DownloadStationTaskProxySelector.cs +++ b/src/NzbDrone.Core/Download/Clients/DownloadStation/Proxies/DownloadStationTaskProxySelector.cs @@ -1,8 +1,7 @@ -using System; +using System; using System.Collections.Generic; using NLog; using NzbDrone.Common.Cache; -using NzbDrone.Common.Http; namespace NzbDrone.Core.Download.Clients.DownloadStation.Proxies { diff --git a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentProxySelector.cs b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentProxySelector.cs index cfada22fb..8ba16c810 100644 --- a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentProxySelector.cs +++ b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentProxySelector.cs @@ -4,8 +4,6 @@ using System.Collections.Generic; using NLog; using NzbDrone.Common.Cache; -using NzbDrone.Common.Http; - namespace NzbDrone.Core.Download.Clients.QBittorrent { public interface IQBittorrentProxy diff --git a/src/NzbDrone.Core/Download/Extensions/XmlExtensions.cs b/src/NzbDrone.Core/Download/Extensions/XmlExtensions.cs index 1e9deec9f..bce66c8bc 100644 --- a/src/NzbDrone.Core/Download/Extensions/XmlExtensions.cs +++ b/src/NzbDrone.Core/Download/Extensions/XmlExtensions.cs @@ -1,4 +1,3 @@ -using System.Linq; using System.Xml.Linq; using System.Xml.XPath; diff --git a/src/NzbDrone.Core/Download/History/DownloadHistoryService.cs b/src/NzbDrone.Core/Download/History/DownloadHistoryService.cs index a7a698f50..479be35f5 100644 --- a/src/NzbDrone.Core/Download/History/DownloadHistoryService.cs +++ b/src/NzbDrone.Core/Download/History/DownloadHistoryService.cs @@ -1,5 +1,4 @@ using System; -using System.IO; using System.Linq; using NzbDrone.Common.Extensions; using NzbDrone.Common.Serializer; diff --git a/src/NzbDrone.Core/Download/NzbValidationService.cs b/src/NzbDrone.Core/Download/NzbValidationService.cs index 571729ccd..e3cbff710 100644 --- a/src/NzbDrone.Core/Download/NzbValidationService.cs +++ b/src/NzbDrone.Core/Download/NzbValidationService.cs @@ -1,4 +1,3 @@ -using System; using System.IO; using System.Linq; using System.Xml; diff --git a/src/NzbDrone.Core/Download/UsenetClientBase.cs b/src/NzbDrone.Core/Download/UsenetClientBase.cs index d078cc61f..b49dfd3a8 100644 --- a/src/NzbDrone.Core/Download/UsenetClientBase.cs +++ b/src/NzbDrone.Core/Download/UsenetClientBase.cs @@ -1,7 +1,6 @@ using System.Net; using NLog; using NzbDrone.Common.Disk; -using NzbDrone.Common.Extensions; using NzbDrone.Common.Http; using NzbDrone.Core.Configuration; using NzbDrone.Core.Exceptions; diff --git a/src/NzbDrone.Core/Extras/ExtraService.cs b/src/NzbDrone.Core/Extras/ExtraService.cs index 284f84e76..c92837429 100644 --- a/src/NzbDrone.Core/Extras/ExtraService.cs +++ b/src/NzbDrone.Core/Extras/ExtraService.cs @@ -5,7 +5,6 @@ using System.Linq; using NLog; using NzbDrone.Common.Disk; using NzbDrone.Core.Configuration; -using NzbDrone.Core.Datastore; using NzbDrone.Core.Extras.Files; using NzbDrone.Core.MediaCover; using NzbDrone.Core.MediaFiles; diff --git a/src/NzbDrone.Core/Extras/Metadata/MetadataFactory.cs b/src/NzbDrone.Core/Extras/Metadata/MetadataFactory.cs index fad65a348..dc07e4d4f 100644 --- a/src/NzbDrone.Core/Extras/Metadata/MetadataFactory.cs +++ b/src/NzbDrone.Core/Extras/Metadata/MetadataFactory.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.Linq; using NLog; -using NzbDrone.Common.Composition; using NzbDrone.Core.Messaging.Events; using NzbDrone.Core.ThingiProvider; diff --git a/src/NzbDrone.Core/HealthCheck/EventDrivenHealthCheck.cs b/src/NzbDrone.Core/HealthCheck/EventDrivenHealthCheck.cs index 544c0d9c3..32dc48bff 100644 --- a/src/NzbDrone.Core/HealthCheck/EventDrivenHealthCheck.cs +++ b/src/NzbDrone.Core/HealthCheck/EventDrivenHealthCheck.cs @@ -1,4 +1,3 @@ -using System; using NzbDrone.Common.Messaging; namespace NzbDrone.Core.HealthCheck diff --git a/src/NzbDrone.Core/ImportLists/FetchAndParseImportListService.cs b/src/NzbDrone.Core/ImportLists/FetchAndParseImportListService.cs index 3b31b75b1..c6ad62077 100644 --- a/src/NzbDrone.Core/ImportLists/FetchAndParseImportListService.cs +++ b/src/NzbDrone.Core/ImportLists/FetchAndParseImportListService.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using NLog; -using NzbDrone.Common.Extensions; using NzbDrone.Common.TPL; using NzbDrone.Core.Parser.Model; diff --git a/src/NzbDrone.Core/ImportLists/ImportListBase.cs b/src/NzbDrone.Core/ImportLists/ImportListBase.cs index d92a6d66e..a2ec01bcc 100644 --- a/src/NzbDrone.Core/ImportLists/ImportListBase.cs +++ b/src/NzbDrone.Core/ImportLists/ImportListBase.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Linq; using FluentValidation.Results; using NLog; -using NzbDrone.Common.Extensions; using NzbDrone.Core.Configuration; using NzbDrone.Core.Parser; using NzbDrone.Core.Parser.Model; diff --git a/src/NzbDrone.Core/ImportLists/ImportListFactory.cs b/src/NzbDrone.Core/ImportLists/ImportListFactory.cs index aed9ad44d..fe4bac64f 100644 --- a/src/NzbDrone.Core/ImportLists/ImportListFactory.cs +++ b/src/NzbDrone.Core/ImportLists/ImportListFactory.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Linq; using FluentValidation.Results; using NLog; -using NzbDrone.Common.Composition; using NzbDrone.Core.Messaging.Events; using NzbDrone.Core.ThingiProvider; diff --git a/src/NzbDrone.Core/Indexers/FileList/FileListParser.cs b/src/NzbDrone.Core/Indexers/FileList/FileListParser.cs index 1770d40d3..475301bdd 100644 --- a/src/NzbDrone.Core/Indexers/FileList/FileListParser.cs +++ b/src/NzbDrone.Core/Indexers/FileList/FileListParser.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Net; using Newtonsoft.Json; diff --git a/src/NzbDrone.Core/Indexers/Headphones/HeadphonesCapabilitiesProvider.cs b/src/NzbDrone.Core/Indexers/Headphones/HeadphonesCapabilitiesProvider.cs index 6de2154a9..03f984ba7 100644 --- a/src/NzbDrone.Core/Indexers/Headphones/HeadphonesCapabilitiesProvider.cs +++ b/src/NzbDrone.Core/Indexers/Headphones/HeadphonesCapabilitiesProvider.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Net; using System.Xml; using System.Xml.Linq; using NLog; diff --git a/src/NzbDrone.Core/Indexers/IndexerFactory.cs b/src/NzbDrone.Core/Indexers/IndexerFactory.cs index 08b260609..4e72a36cd 100644 --- a/src/NzbDrone.Core/Indexers/IndexerFactory.cs +++ b/src/NzbDrone.Core/Indexers/IndexerFactory.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Linq; using FluentValidation.Results; using NLog; -using NzbDrone.Common.Composition; using NzbDrone.Core.Messaging.Events; using NzbDrone.Core.ThingiProvider; diff --git a/src/NzbDrone.Core/Indexers/Newznab/NewznabCategoryFieldOptionsConverter.cs b/src/NzbDrone.Core/Indexers/Newznab/NewznabCategoryFieldOptionsConverter.cs index 1d1498a82..50ca03c6d 100644 --- a/src/NzbDrone.Core/Indexers/Newznab/NewznabCategoryFieldOptionsConverter.cs +++ b/src/NzbDrone.Core/Indexers/Newznab/NewznabCategoryFieldOptionsConverter.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Linq; using NzbDrone.Core.Annotations; diff --git a/src/NzbDrone.Core/Indexers/Torznab/Torznab.cs b/src/NzbDrone.Core/Indexers/Torznab/Torznab.cs index c9311a8c4..65543b9b1 100644 --- a/src/NzbDrone.Core/Indexers/Torznab/Torznab.cs +++ b/src/NzbDrone.Core/Indexers/Torznab/Torznab.cs @@ -8,7 +8,6 @@ using NzbDrone.Common.Http; using NzbDrone.Core.Configuration; using NzbDrone.Core.Indexers.Newznab; using NzbDrone.Core.Parser; -using NzbDrone.Core.ThingiProvider; using NzbDrone.Core.Validation; namespace NzbDrone.Core.Indexers.Torznab diff --git a/src/NzbDrone.Core/MediaFiles/MediaFileRepository.cs b/src/NzbDrone.Core/MediaFiles/MediaFileRepository.cs index 7eaaf1f5d..c97f0c2be 100644 --- a/src/NzbDrone.Core/MediaFiles/MediaFileRepository.cs +++ b/src/NzbDrone.Core/MediaFiles/MediaFileRepository.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using Dapper; using NzbDrone.Common; using NzbDrone.Core.Datastore; using NzbDrone.Core.Messaging.Events; diff --git a/src/NzbDrone.Core/MediaFiles/MediaFileService.cs b/src/NzbDrone.Core/MediaFiles/MediaFileService.cs index ee5c44f4a..2c231ac8e 100644 --- a/src/NzbDrone.Core/MediaFiles/MediaFileService.cs +++ b/src/NzbDrone.Core/MediaFiles/MediaFileService.cs @@ -4,7 +4,6 @@ using System.IO.Abstractions; using System.Linq; using NLog; using NzbDrone.Common; -using NzbDrone.Common.Extensions; using NzbDrone.Core.Datastore.Events; using NzbDrone.Core.MediaFiles.Events; using NzbDrone.Core.Messaging.Events; diff --git a/src/NzbDrone.Core/MediaFiles/TrackFileMovingService.cs b/src/NzbDrone.Core/MediaFiles/TrackFileMovingService.cs index 28712df5f..95519482f 100644 --- a/src/NzbDrone.Core/MediaFiles/TrackFileMovingService.cs +++ b/src/NzbDrone.Core/MediaFiles/TrackFileMovingService.cs @@ -4,7 +4,6 @@ using System.IO; using NLog; using NzbDrone.Common.Disk; using NzbDrone.Common.EnsureThat; -using NzbDrone.Common.Extensions; using NzbDrone.Core.Configuration; using NzbDrone.Core.MediaFiles.Events; using NzbDrone.Core.MediaFiles.TrackImport; diff --git a/src/NzbDrone.Core/Music/Repositories/ReleaseRepository.cs b/src/NzbDrone.Core/Music/Repositories/ReleaseRepository.cs index 32b8bc706..af54a8634 100644 --- a/src/NzbDrone.Core/Music/Repositories/ReleaseRepository.cs +++ b/src/NzbDrone.Core/Music/Repositories/ReleaseRepository.cs @@ -3,7 +3,6 @@ using System.Linq; using NzbDrone.Common.EnsureThat; using NzbDrone.Core.Datastore; using NzbDrone.Core.Messaging.Events; -using TagLib.Riff; namespace NzbDrone.Core.Music { diff --git a/src/NzbDrone.Core/Music/Services/RefreshAlbumReleaseService.cs b/src/NzbDrone.Core/Music/Services/RefreshAlbumReleaseService.cs index 983ca0c07..e91c303b5 100644 --- a/src/NzbDrone.Core/Music/Services/RefreshAlbumReleaseService.cs +++ b/src/NzbDrone.Core/Music/Services/RefreshAlbumReleaseService.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.Linq; using NLog; -using NzbDrone.Common.Extensions; namespace NzbDrone.Core.Music { diff --git a/src/NzbDrone.Core/Music/Services/RefreshAlbumService.cs b/src/NzbDrone.Core/Music/Services/RefreshAlbumService.cs index 2be37b499..02e283ad5 100644 --- a/src/NzbDrone.Core/Music/Services/RefreshAlbumService.cs +++ b/src/NzbDrone.Core/Music/Services/RefreshAlbumService.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.Linq; using NLog; -using NzbDrone.Common.Extensions; using NzbDrone.Common.Instrumentation.Extensions; using NzbDrone.Core.Exceptions; using NzbDrone.Core.History; diff --git a/src/NzbDrone.Core/Music/Services/RefreshEntityServiceBase.cs b/src/NzbDrone.Core/Music/Services/RefreshEntityServiceBase.cs index b72b0426c..ffc8ab07b 100644 --- a/src/NzbDrone.Core/Music/Services/RefreshEntityServiceBase.cs +++ b/src/NzbDrone.Core/Music/Services/RefreshEntityServiceBase.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.Linq; using NLog; -using NzbDrone.Common.Extensions; namespace NzbDrone.Core.Music { diff --git a/src/NzbDrone.Core/Notifications/ArtistDeleteMessage.cs b/src/NzbDrone.Core/Notifications/ArtistDeleteMessage.cs index 94b7f00aa..b8c8bf09e 100644 --- a/src/NzbDrone.Core/Notifications/ArtistDeleteMessage.cs +++ b/src/NzbDrone.Core/Notifications/ArtistDeleteMessage.cs @@ -1,4 +1,3 @@ -using NzbDrone.Core.MediaFiles; using NzbDrone.Core.Music; namespace NzbDrone.Core.Notifications diff --git a/src/NzbDrone.Core/Notifications/Email/Email.cs b/src/NzbDrone.Core/Notifications/Email/Email.cs index b013c71bb..15170fee2 100644 --- a/src/NzbDrone.Core/Notifications/Email/Email.cs +++ b/src/NzbDrone.Core/Notifications/Email/Email.cs @@ -8,7 +8,6 @@ using MimeKit; using NLog; using NzbDrone.Common.Extensions; using NzbDrone.Common.Http.Dispatchers; -using NzbDrone.Core.Security; namespace NzbDrone.Core.Notifications.Email { diff --git a/src/NzbDrone.Core/Notifications/NotificationFactory.cs b/src/NzbDrone.Core/Notifications/NotificationFactory.cs index c9df71ca5..920033f52 100644 --- a/src/NzbDrone.Core/Notifications/NotificationFactory.cs +++ b/src/NzbDrone.Core/Notifications/NotificationFactory.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.Linq; using NLog; -using NzbDrone.Common.Composition; using NzbDrone.Core.Messaging.Events; using NzbDrone.Core.ThingiProvider; diff --git a/src/NzbDrone.Core/Notifications/Plex/PlexTv/PlexTvService.cs b/src/NzbDrone.Core/Notifications/Plex/PlexTv/PlexTvService.cs index 74facaea4..c684b34ab 100644 --- a/src/NzbDrone.Core/Notifications/Plex/PlexTv/PlexTvService.cs +++ b/src/NzbDrone.Core/Notifications/Plex/PlexTv/PlexTvService.cs @@ -1,7 +1,6 @@ using System; using System.Linq; using System.Net.Http; -using System.Text; using NzbDrone.Common.Cache; using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Common.Http; diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookDownloadFailurePayload.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookDownloadFailurePayload.cs index fe12b5781..33d279ff8 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookDownloadFailurePayload.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookDownloadFailurePayload.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace NzbDrone.Core.Notifications.Webhook { public class WebhookDownloadFailurePayload : WebhookPayload diff --git a/src/NzbDrone.Core/Notifications/Xbmc/Model/KodiSource.cs b/src/NzbDrone.Core/Notifications/Xbmc/Model/KodiSource.cs index 0c45e406d..02874a166 100644 --- a/src/NzbDrone.Core/Notifications/Xbmc/Model/KodiSource.cs +++ b/src/NzbDrone.Core/Notifications/Xbmc/Model/KodiSource.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace NzbDrone.Core.Notifications.Xbmc.Model { public class KodiSource diff --git a/src/NzbDrone.Core/Organizer/FileNameBuilder.cs b/src/NzbDrone.Core/Organizer/FileNameBuilder.cs index a576d11a9..54a0ee8ac 100644 --- a/src/NzbDrone.Core/Organizer/FileNameBuilder.cs +++ b/src/NzbDrone.Core/Organizer/FileNameBuilder.cs @@ -11,7 +11,6 @@ using NzbDrone.Common.Extensions; using NzbDrone.Core.CustomFormats; using NzbDrone.Core.MediaFiles; using NzbDrone.Core.Music; -using NzbDrone.Core.Profiles.Releases; using NzbDrone.Core.Qualities; namespace NzbDrone.Core.Organizer diff --git a/src/NzbDrone.Core/Organizer/FileNameValidation.cs b/src/NzbDrone.Core/Organizer/FileNameValidation.cs index 6634e3601..13aef3add 100644 --- a/src/NzbDrone.Core/Organizer/FileNameValidation.cs +++ b/src/NzbDrone.Core/Organizer/FileNameValidation.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.RegularExpressions; diff --git a/src/NzbDrone.Core/Parser/Model/LocalAlbumRelease.cs b/src/NzbDrone.Core/Parser/Model/LocalAlbumRelease.cs index df82059a0..1cc4b69ae 100644 --- a/src/NzbDrone.Core/Parser/Model/LocalAlbumRelease.cs +++ b/src/NzbDrone.Core/Parser/Model/LocalAlbumRelease.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.IO; using System.Linq; -using NzbDrone.Common.Extensions; using NzbDrone.Core.MediaFiles.TrackImport.Identification; using NzbDrone.Core.Music; diff --git a/src/NzbDrone.Core/Parser/QualityParser.cs b/src/NzbDrone.Core/Parser/QualityParser.cs index f697af10e..532843623 100644 --- a/src/NzbDrone.Core/Parser/QualityParser.cs +++ b/src/NzbDrone.Core/Parser/QualityParser.cs @@ -1,8 +1,6 @@ using System; -using System.IO; using System.Text.RegularExpressions; using NLog; -using NzbDrone.Common.Disk; using NzbDrone.Common.Extensions; using NzbDrone.Common.Instrumentation; using NzbDrone.Core.MediaFiles; diff --git a/src/NzbDrone.Core/ThingiProvider/ProviderFactory.cs b/src/NzbDrone.Core/ThingiProvider/ProviderFactory.cs index 5f1b25e19..4bec1fee7 100644 --- a/src/NzbDrone.Core/ThingiProvider/ProviderFactory.cs +++ b/src/NzbDrone.Core/ThingiProvider/ProviderFactory.cs @@ -4,7 +4,6 @@ using System.Linq; using FluentValidation.Results; using Microsoft.Extensions.DependencyInjection; using NLog; -using NzbDrone.Common.Composition; using NzbDrone.Core.Lifecycle; using NzbDrone.Core.Messaging.Events; using NzbDrone.Core.ThingiProvider.Events; diff --git a/src/NzbDrone.Core/Update/History/UpdateHistoryRepository.cs b/src/NzbDrone.Core/Update/History/UpdateHistoryRepository.cs index 40bd68963..fe5e259b5 100644 --- a/src/NzbDrone.Core/Update/History/UpdateHistoryRepository.cs +++ b/src/NzbDrone.Core/Update/History/UpdateHistoryRepository.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; using NzbDrone.Core.Datastore; using NzbDrone.Core.Messaging.Events; diff --git a/src/NzbDrone.Core/Update/RecentUpdateProvider.cs b/src/NzbDrone.Core/Update/RecentUpdateProvider.cs index 68cda9aa6..a3264300d 100644 --- a/src/NzbDrone.Core/Update/RecentUpdateProvider.cs +++ b/src/NzbDrone.Core/Update/RecentUpdateProvider.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Core.Configuration; diff --git a/src/NzbDrone.Core/Update/UpdatePackage.cs b/src/NzbDrone.Core/Update/UpdatePackage.cs index ca97ad5d0..63f966a4d 100644 --- a/src/NzbDrone.Core/Update/UpdatePackage.cs +++ b/src/NzbDrone.Core/Update/UpdatePackage.cs @@ -1,5 +1,4 @@ using System; -using NzbDrone.Common.EnvironmentInfo; namespace NzbDrone.Core.Update { diff --git a/src/NzbDrone.Core/Update/UpdatePackageProvider.cs b/src/NzbDrone.Core/Update/UpdatePackageProvider.cs index 3c4d11564..2e957b374 100644 --- a/src/NzbDrone.Core/Update/UpdatePackageProvider.cs +++ b/src/NzbDrone.Core/Update/UpdatePackageProvider.cs @@ -1,7 +1,6 @@ -using System; +using System; using System.Collections.Generic; using System.Runtime.InteropServices; -using FluentValidation.Validators; using NzbDrone.Common.Cloud; using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Common.Http; diff --git a/src/NzbDrone.Host/AppLifetime.cs b/src/NzbDrone.Host/AppLifetime.cs index 41ff0165f..45616e36b 100644 --- a/src/NzbDrone.Host/AppLifetime.cs +++ b/src/NzbDrone.Host/AppLifetime.cs @@ -1,4 +1,3 @@ -using System.Data.SQLite; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Hosting; diff --git a/src/NzbDrone.Host/Startup.cs b/src/NzbDrone.Host/Startup.cs index ccd9dcbdb..2f0e13602 100644 --- a/src/NzbDrone.Host/Startup.cs +++ b/src/NzbDrone.Host/Startup.cs @@ -27,7 +27,6 @@ using NzbDrone.Core.Datastore; using NzbDrone.Core.Instrumentation; using NzbDrone.Core.Lifecycle; using NzbDrone.Core.Messaging.Events; -using NzbDrone.Host; using NzbDrone.Host.AccessControl; using NzbDrone.Http.Authentication; using NzbDrone.SignalR; diff --git a/src/NzbDrone.Integration.Test/ApiTests/WantedTests/MissingFixture.cs b/src/NzbDrone.Integration.Test/ApiTests/WantedTests/MissingFixture.cs index e1c24e036..e7cd01522 100644 --- a/src/NzbDrone.Integration.Test/ApiTests/WantedTests/MissingFixture.cs +++ b/src/NzbDrone.Integration.Test/ApiTests/WantedTests/MissingFixture.cs @@ -3,7 +3,6 @@ using FluentAssertions; using Lidarr.Api.V1.RootFolders; using NUnit.Framework; using NzbDrone.Core.Music; -using NzbDrone.Core.Qualities; namespace NzbDrone.Integration.Test.ApiTests.WantedTests { diff --git a/src/NzbDrone.Integration.Test/IndexHtmlFixture.cs b/src/NzbDrone.Integration.Test/IndexHtmlFixture.cs index 7534fcf1b..7f3a087a5 100644 --- a/src/NzbDrone.Integration.Test/IndexHtmlFixture.cs +++ b/src/NzbDrone.Integration.Test/IndexHtmlFixture.cs @@ -1,6 +1,4 @@ using System; -using System.Linq; -using System.Net; using System.Net.Http; using System.Net.Http.Headers; using FluentAssertions; diff --git a/src/NzbDrone.Integration.Test/IntegrationTest.cs b/src/NzbDrone.Integration.Test/IntegrationTest.cs index c8e0f45fc..bb533f8b3 100644 --- a/src/NzbDrone.Integration.Test/IntegrationTest.cs +++ b/src/NzbDrone.Integration.Test/IntegrationTest.cs @@ -1,9 +1,6 @@ -using System.Collections.Generic; using System.Threading; using Lidarr.Http.ClientSchema; -using Microsoft.Extensions.Configuration; using NLog; -using Npgsql; using NUnit.Framework; using NzbDrone.Common.Extensions; using NzbDrone.Core.Datastore; diff --git a/src/NzbDrone.Windows/Disk/FolderMount.cs b/src/NzbDrone.Windows/Disk/FolderMount.cs index 65fbcf5de..457887532 100644 --- a/src/NzbDrone.Windows/Disk/FolderMount.cs +++ b/src/NzbDrone.Windows/Disk/FolderMount.cs @@ -1,6 +1,5 @@ using System.IO; using NzbDrone.Common.Disk; -using NzbDrone.Common.Extensions; namespace NzbDrone.Windows.Disk {