diff --git a/.editorconfig b/.editorconfig index 96cb2fbc6d..a5148e4445 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/NzbDrone.Common.Test/DiskTests/DiskTransferServiceFixture.cs b/src/NzbDrone.Common.Test/DiskTests/DiskTransferServiceFixture.cs index c28be8b8a3..ab05fde71c 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.Linq; diff --git a/src/NzbDrone.Common.Test/ExtensionTests/StringExtensionTests/IsValidIPAddressFixture.cs b/src/NzbDrone.Common.Test/ExtensionTests/StringExtensionTests/IsValidIPAddressFixture.cs index 0e2ac3d63e..8a049f0686 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 a75116417a..a530baa551 100644 --- a/src/NzbDrone.Common/Cache/Cached.cs +++ b/src/NzbDrone.Common/Cache/Cached.cs @@ -3,7 +3,6 @@ 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/Disk/IDiskProvider.cs b/src/NzbDrone.Common/Disk/IDiskProvider.cs index 4f1cad8115..6c33692c3b 100644 --- a/src/NzbDrone.Common/Disk/IDiskProvider.cs +++ b/src/NzbDrone.Common/Disk/IDiskProvider.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; using System.IO; -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 84942a186d..8d8dcf2f92 100644 --- a/src/NzbDrone.Common/Disk/OsPath.cs +++ b/src/NzbDrone.Common/Disk/OsPath.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Linq; using NzbDrone.Common.Extensions; namespace NzbDrone.Common.Disk diff --git a/src/NzbDrone.Common/Http/Dispatchers/ICertificateValidationService.cs b/src/NzbDrone.Common/Http/Dispatchers/ICertificateValidationService.cs index 187c1fd43d..54f3e2a8d9 100644 --- a/src/NzbDrone.Common/Http/Dispatchers/ICertificateValidationService.cs +++ b/src/NzbDrone.Common/Http/Dispatchers/ICertificateValidationService.cs @@ -1,4 +1,3 @@ -using System.Net.Http; using System.Net.Security; using System.Security.Cryptography.X509Certificates; diff --git a/src/NzbDrone.Common/Http/HttpHeader.cs b/src/NzbDrone.Common/Http/HttpHeader.cs index 3c6b18a097..42c13fd444 100644 --- a/src/NzbDrone.Common/Http/HttpHeader.cs +++ b/src/NzbDrone.Common/Http/HttpHeader.cs @@ -4,7 +4,6 @@ using System.Collections.Specialized; using System.Globalization; using System.Linq; -using System.Net; using System.Net.Http.Headers; using System.Text; using NzbDrone.Common.Extensions; diff --git a/src/NzbDrone.Common/Http/UserAgentParser.cs b/src/NzbDrone.Common/Http/UserAgentParser.cs index 2c382236a5..0a31410f2d 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 0559b4cd35..9f70289fdf 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/Extensions/SentryLoggerExtensions.cs b/src/NzbDrone.Common/Instrumentation/Extensions/SentryLoggerExtensions.cs index 437288d697..68201d62c9 100644 --- a/src/NzbDrone.Common/Instrumentation/Extensions/SentryLoggerExtensions.cs +++ b/src/NzbDrone.Common/Instrumentation/Extensions/SentryLoggerExtensions.cs @@ -1,8 +1,6 @@ -using System; using System.Collections.Generic; using System.Linq; using NLog; -using NLog.Fluent; namespace NzbDrone.Common.Instrumentation.Extensions { diff --git a/src/NzbDrone.Common/Instrumentation/GlobalExceptionHandlers.cs b/src/NzbDrone.Common/Instrumentation/GlobalExceptionHandlers.cs index 5bc474e7e5..46fadf08b8 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/NzbDroneFileTarget.cs b/src/NzbDrone.Common/Instrumentation/NzbDroneFileTarget.cs index e2c38f95c2..84658cf749 100644 --- a/src/NzbDrone.Common/Instrumentation/NzbDroneFileTarget.cs +++ b/src/NzbDrone.Common/Instrumentation/NzbDroneFileTarget.cs @@ -1,4 +1,3 @@ -using System; using System.Text; using NLog; using NLog.Targets; diff --git a/src/NzbDrone.Common/Instrumentation/Sentry/SentryCleanser.cs b/src/NzbDrone.Common/Instrumentation/Sentry/SentryCleanser.cs index a56e57376e..85175b4266 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 12e70c414f..bcdf1d8e18 100644 --- a/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs +++ b/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs @@ -10,9 +10,7 @@ using NLog.Targets; using Npgsql; 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 958b700db8..5b9c3aa1c3 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 8495388735..06b09968c0 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.Core.Test/Datastore/Migration/147_custom_formatsFixture.cs b/src/NzbDrone.Core.Test/Datastore/Migration/147_custom_formatsFixture.cs index e9bec37927..ce670f5eb0 100644 --- a/src/NzbDrone.Core.Test/Datastore/Migration/147_custom_formatsFixture.cs +++ b/src/NzbDrone.Core.Test/Datastore/Migration/147_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/Datastore/Migration/180_fix_invalid_profile_referencesFixture.cs b/src/NzbDrone.Core.Test/Datastore/Migration/180_fix_invalid_profile_referencesFixture.cs index 8b1eca13d3..6642aa2dcb 100644 --- a/src/NzbDrone.Core.Test/Datastore/Migration/180_fix_invalid_profile_referencesFixture.cs +++ b/src/NzbDrone.Core.Test/Datastore/Migration/180_fix_invalid_profile_referencesFixture.cs @@ -1,8 +1,5 @@ -using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; using FluentAssertions; using NUnit.Framework; using NzbDrone.Common.Serializer; diff --git a/src/NzbDrone.Core.Test/Datastore/Migration/200_cdh_per_downloadclientFixture.cs b/src/NzbDrone.Core.Test/Datastore/Migration/200_cdh_per_downloadclientFixture.cs index ce3f8db7cf..c6ba4232ca 100644 --- a/src/NzbDrone.Core.Test/Datastore/Migration/200_cdh_per_downloadclientFixture.cs +++ b/src/NzbDrone.Core.Test/Datastore/Migration/200_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/202_remove_predbFixture.cs b/src/NzbDrone.Core.Test/Datastore/Migration/202_remove_predbFixture.cs index ebc71465e5..c119f5d35d 100644 --- a/src/NzbDrone.Core.Test/Datastore/Migration/202_remove_predbFixture.cs +++ b/src/NzbDrone.Core.Test/Datastore/Migration/202_remove_predbFixture.cs @@ -1,8 +1,6 @@ using System; -using System.Collections.Generic; using System.Linq; using FluentAssertions; -using Newtonsoft.Json.Linq; using NUnit.Framework; using NzbDrone.Common.Serializer; using NzbDrone.Core.Datastore.Migration; diff --git a/src/NzbDrone.Core.Test/DecisionEngineTests/RepackSpecificationFixture.cs b/src/NzbDrone.Core.Test/DecisionEngineTests/RepackSpecificationFixture.cs index e46cb14bc9..2e743ec2d5 100644 --- a/src/NzbDrone.Core.Test/DecisionEngineTests/RepackSpecificationFixture.cs +++ b/src/NzbDrone.Core.Test/DecisionEngineTests/RepackSpecificationFixture.cs @@ -1,4 +1,3 @@ -using System; using FizzWare.NBuilder; using FluentAssertions; using NUnit.Framework; diff --git a/src/NzbDrone.Core.Test/Download/Aggregation/Aggregators/AggregateLanguagesFixture.cs b/src/NzbDrone.Core.Test/Download/Aggregation/Aggregators/AggregateLanguagesFixture.cs index 81d1eaf036..dbef200d9e 100644 --- a/src/NzbDrone.Core.Test/Download/Aggregation/Aggregators/AggregateLanguagesFixture.cs +++ b/src/NzbDrone.Core.Test/Download/Aggregation/Aggregators/AggregateLanguagesFixture.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.Linq; using FizzWare.NBuilder; using FluentAssertions; using NUnit.Framework; diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/FreeboxDownloadTests/TorrentFreeboxDownloadFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/FreeboxDownloadTests/TorrentFreeboxDownloadFixture.cs index 3596bda7f5..99cca4a6df 100644 --- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/FreeboxDownloadTests/TorrentFreeboxDownloadFixture.cs +++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/FreeboxDownloadTests/TorrentFreeboxDownloadFixture.cs @@ -10,7 +10,6 @@ using NzbDrone.Core.Download.Clients; using NzbDrone.Core.Download.Clients.FreeboxDownload; using NzbDrone.Core.Download.Clients.FreeboxDownload.Responses; -using NzbDrone.Core.Movies; using NzbDrone.Core.Parser.Model; namespace NzbDrone.Core.Test.Download.DownloadClientTests.FreeboxDownloadTests diff --git a/src/NzbDrone.Core.Test/Extras/ExtraServiceFixture.cs b/src/NzbDrone.Core.Test/Extras/ExtraServiceFixture.cs index 9a8830a98d..38a059d68b 100644 --- a/src/NzbDrone.Core.Test/Extras/ExtraServiceFixture.cs +++ b/src/NzbDrone.Core.Test/Extras/ExtraServiceFixture.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using System.IO; -using System.Linq; using FizzWare.NBuilder; using Moq; using NUnit.Framework; diff --git a/src/NzbDrone.Core.Test/Framework/CoreTest.cs b/src/NzbDrone.Core.Test/Framework/CoreTest.cs index 61a8ce230e..b0f0f610fd 100644 --- a/src/NzbDrone.Core.Test/Framework/CoreTest.cs +++ b/src/NzbDrone.Core.Test/Framework/CoreTest.cs @@ -1,5 +1,4 @@ using System; -using Moq; using NUnit.Framework; using NzbDrone.Common.Cache; using NzbDrone.Common.Cloud; @@ -10,7 +9,6 @@ using NzbDrone.Common.TPL; using NzbDrone.Core.Configuration; using NzbDrone.Core.Http; -using NzbDrone.Core.Parser; using NzbDrone.Core.Security; using NzbDrone.Test.Common; diff --git a/src/NzbDrone.Core.Test/HealthCheck/Checks/DownloadClientSortingCheckFixture.cs b/src/NzbDrone.Core.Test/HealthCheck/Checks/DownloadClientSortingCheckFixture.cs index 8cd95a928a..24a7ef890f 100644 --- a/src/NzbDrone.Core.Test/HealthCheck/Checks/DownloadClientSortingCheckFixture.cs +++ b/src/NzbDrone.Core.Test/HealthCheck/Checks/DownloadClientSortingCheckFixture.cs @@ -1,13 +1,10 @@ using System; -using System.Collections.Generic; using Moq; using NUnit.Framework; -using NzbDrone.Common.Disk; using NzbDrone.Core.Download; using NzbDrone.Core.Download.Clients; using NzbDrone.Core.HealthCheck.Checks; using NzbDrone.Core.Localization; -using NzbDrone.Core.RootFolders; using NzbDrone.Core.Test.Framework; using NzbDrone.Test.Common; diff --git a/src/NzbDrone.Core.Test/HealthCheck/Checks/IndexerJackettAllCheckFixture.cs b/src/NzbDrone.Core.Test/HealthCheck/Checks/IndexerJackettAllCheckFixture.cs index f3edd64137..6cbe0934e3 100644 --- a/src/NzbDrone.Core.Test/HealthCheck/Checks/IndexerJackettAllCheckFixture.cs +++ b/src/NzbDrone.Core.Test/HealthCheck/Checks/IndexerJackettAllCheckFixture.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using Moq; using NUnit.Framework; diff --git a/src/NzbDrone.Core.Test/HistoryTests/HistoryRepositoryFixture.cs b/src/NzbDrone.Core.Test/HistoryTests/HistoryRepositoryFixture.cs index 1611dbf6cc..977b3f2128 100644 --- a/src/NzbDrone.Core.Test/HistoryTests/HistoryRepositoryFixture.cs +++ b/src/NzbDrone.Core.Test/HistoryTests/HistoryRepositoryFixture.cs @@ -1,6 +1,4 @@ -using System; using System.Collections.Generic; -using System.Linq; using FizzWare.NBuilder; using FluentAssertions; using NUnit.Framework; diff --git a/src/NzbDrone.Core.Test/Housekeeping/Housekeepers/CleanupOrphanedMovieMetadataFixture.cs b/src/NzbDrone.Core.Test/Housekeeping/Housekeepers/CleanupOrphanedMovieMetadataFixture.cs index 22a71af6a9..366262457e 100644 --- a/src/NzbDrone.Core.Test/Housekeeping/Housekeepers/CleanupOrphanedMovieMetadataFixture.cs +++ b/src/NzbDrone.Core.Test/Housekeeping/Housekeepers/CleanupOrphanedMovieMetadataFixture.cs @@ -3,9 +3,7 @@ using NUnit.Framework; using NzbDrone.Core.Housekeeping.Housekeepers; using NzbDrone.Core.ImportLists.ImportListMovies; -using NzbDrone.Core.Languages; using NzbDrone.Core.Movies; -using NzbDrone.Core.Movies.Translations; using NzbDrone.Core.Test.Framework; namespace NzbDrone.Core.Test.Housekeeping.Housekeepers diff --git a/src/NzbDrone.Core.Test/IndexerSearchTests/ReleaseSearchServiceFixture.cs b/src/NzbDrone.Core.Test/IndexerSearchTests/ReleaseSearchServiceFixture.cs index 03bb0bb648..15e6d76872 100644 --- a/src/NzbDrone.Core.Test/IndexerSearchTests/ReleaseSearchServiceFixture.cs +++ b/src/NzbDrone.Core.Test/IndexerSearchTests/ReleaseSearchServiceFixture.cs @@ -1,6 +1,4 @@ -using System; using System.Collections.Generic; -using System.Globalization; using System.Linq; using FizzWare.NBuilder; using FluentAssertions; diff --git a/src/NzbDrone.Core.Test/IndexerTests/NewznabTests/NewznabCapabilitiesProviderFixture.cs b/src/NzbDrone.Core.Test/IndexerTests/NewznabTests/NewznabCapabilitiesProviderFixture.cs index 847a22a81a..d09f47c4fa 100644 --- a/src/NzbDrone.Core.Test/IndexerTests/NewznabTests/NewznabCapabilitiesProviderFixture.cs +++ b/src/NzbDrone.Core.Test/IndexerTests/NewznabTests/NewznabCapabilitiesProviderFixture.cs @@ -6,7 +6,6 @@ using NzbDrone.Common.Http; using NzbDrone.Core.Indexers.Newznab; using NzbDrone.Core.Test.Framework; -using NzbDrone.Test.Common; namespace NzbDrone.Core.Test.IndexerTests.NewznabTests { diff --git a/src/NzbDrone.Core.Test/IndexerTests/RarbgTests/RarbgFixture.cs b/src/NzbDrone.Core.Test/IndexerTests/RarbgTests/RarbgFixture.cs index 22f6cd4937..fc4e6750ef 100644 --- a/src/NzbDrone.Core.Test/IndexerTests/RarbgTests/RarbgFixture.cs +++ b/src/NzbDrone.Core.Test/IndexerTests/RarbgTests/RarbgFixture.cs @@ -5,7 +5,6 @@ using FluentAssertions; using Moq; using NUnit.Framework; -using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Common.Http; using NzbDrone.Core.Indexers; using NzbDrone.Core.Indexers.Rarbg; diff --git a/src/NzbDrone.Core.Test/IndexerTests/TorznabTests/TorznabFixture.cs b/src/NzbDrone.Core.Test/IndexerTests/TorznabTests/TorznabFixture.cs index 8fb66a3349..f3213e7772 100644 --- a/src/NzbDrone.Core.Test/IndexerTests/TorznabTests/TorznabFixture.cs +++ b/src/NzbDrone.Core.Test/IndexerTests/TorznabTests/TorznabFixture.cs @@ -1,10 +1,8 @@ using System; -using System.Collections.Generic; using System.Linq; using System.Net.Http; using FizzWare.NBuilder; using FluentAssertions; -using FluentValidation.Results; using Moq; using NUnit.Framework; using NzbDrone.Common.Http; diff --git a/src/NzbDrone.Core.Test/MediaFiles/MediaInfo/VideoFileInfoReaderFixture.cs b/src/NzbDrone.Core.Test/MediaFiles/MediaInfo/VideoFileInfoReaderFixture.cs index f0826d64bc..945f519e7c 100644 --- a/src/NzbDrone.Core.Test/MediaFiles/MediaInfo/VideoFileInfoReaderFixture.cs +++ b/src/NzbDrone.Core.Test/MediaFiles/MediaInfo/VideoFileInfoReaderFixture.cs @@ -1,4 +1,3 @@ -using System; using System.IO; using System.Linq; using System.Reflection; diff --git a/src/NzbDrone.Core.Test/MediaFiles/MovieImport/Specifications/MatchesGrabSpecificationFixture.cs b/src/NzbDrone.Core.Test/MediaFiles/MovieImport/Specifications/MatchesGrabSpecificationFixture.cs index a09e932d6c..cc6bf8bba4 100644 --- a/src/NzbDrone.Core.Test/MediaFiles/MovieImport/Specifications/MatchesGrabSpecificationFixture.cs +++ b/src/NzbDrone.Core.Test/MediaFiles/MovieImport/Specifications/MatchesGrabSpecificationFixture.cs @@ -1,4 +1,3 @@ -using System.Linq; using FizzWare.NBuilder; using FluentAssertions; using NUnit.Framework; diff --git a/src/NzbDrone.Core.Test/MediaFiles/MovieImport/Specifications/UpgradeSpecificationFixture.cs b/src/NzbDrone.Core.Test/MediaFiles/MovieImport/Specifications/UpgradeSpecificationFixture.cs index 6690453a32..b018a55ecb 100644 --- a/src/NzbDrone.Core.Test/MediaFiles/MovieImport/Specifications/UpgradeSpecificationFixture.cs +++ b/src/NzbDrone.Core.Test/MediaFiles/MovieImport/Specifications/UpgradeSpecificationFixture.cs @@ -1,11 +1,9 @@ -using System.Collections.Generic; using System.Linq; using FizzWare.NBuilder; using FluentAssertions; using NUnit.Framework; using NzbDrone.Core.Configuration; using NzbDrone.Core.CustomFormats; -using NzbDrone.Core.Datastore; using NzbDrone.Core.MediaFiles; using NzbDrone.Core.MediaFiles.MovieImport.Specifications; using NzbDrone.Core.Movies; diff --git a/src/NzbDrone.Core.Test/MovieTests/RefreshMovieServiceFixture.cs b/src/NzbDrone.Core.Test/MovieTests/RefreshMovieServiceFixture.cs index 922da7476f..b57e565c4a 100644 --- a/src/NzbDrone.Core.Test/MovieTests/RefreshMovieServiceFixture.cs +++ b/src/NzbDrone.Core.Test/MovieTests/RefreshMovieServiceFixture.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Linq; using FizzWare.NBuilder; using Moq; using NUnit.Framework; diff --git a/src/NzbDrone.Core.Test/OrganizerTests/FileNameBuilderTests/FileNameBuilderFixture.cs b/src/NzbDrone.Core.Test/OrganizerTests/FileNameBuilderTests/FileNameBuilderFixture.cs index 2b4bcfc053..102cd22d03 100644 --- a/src/NzbDrone.Core.Test/OrganizerTests/FileNameBuilderTests/FileNameBuilderFixture.cs +++ b/src/NzbDrone.Core.Test/OrganizerTests/FileNameBuilderTests/FileNameBuilderFixture.cs @@ -12,7 +12,6 @@ using NzbDrone.Core.MediaFiles; using NzbDrone.Core.MediaFiles.MediaInfo; using NzbDrone.Core.Movies; -using NzbDrone.Core.Movies.Collections; using NzbDrone.Core.Movies.Translations; using NzbDrone.Core.Organizer; using NzbDrone.Core.Qualities; diff --git a/src/NzbDrone.Core.Test/OrganizerTests/FileNameBuilderTests/IdFixture.cs b/src/NzbDrone.Core.Test/OrganizerTests/FileNameBuilderTests/IdFixture.cs index f9e294323f..955633039c 100644 --- a/src/NzbDrone.Core.Test/OrganizerTests/FileNameBuilderTests/IdFixture.cs +++ b/src/NzbDrone.Core.Test/OrganizerTests/FileNameBuilderTests/IdFixture.cs @@ -1,7 +1,6 @@ using FizzWare.NBuilder; using FluentAssertions; using NUnit.Framework; -using NUnit.Framework.Internal; using NzbDrone.Core.Movies; using NzbDrone.Core.Organizer; using NzbDrone.Core.Test.Framework; diff --git a/src/NzbDrone.Core.Test/Qualities/QualityFixture.cs b/src/NzbDrone.Core.Test/Qualities/QualityFixture.cs index 2329a23e02..2d908700d9 100644 --- a/src/NzbDrone.Core.Test/Qualities/QualityFixture.cs +++ b/src/NzbDrone.Core.Test/Qualities/QualityFixture.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Linq; using FluentAssertions; diff --git a/src/NzbDrone.Core/CustomFormats/CustomFormatService.cs b/src/NzbDrone.Core/CustomFormats/CustomFormatService.cs index 4ba022e441..5475ac5b80 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/CustomFormatSpecificationBase.cs b/src/NzbDrone.Core/CustomFormats/Specifications/CustomFormatSpecificationBase.cs index cd4f40309c..a9800594a1 100644 --- a/src/NzbDrone.Core/CustomFormats/Specifications/CustomFormatSpecificationBase.cs +++ b/src/NzbDrone.Core/CustomFormats/Specifications/CustomFormatSpecificationBase.cs @@ -1,4 +1,3 @@ -using NzbDrone.Core.Parser.Model; using NzbDrone.Core.Validation; namespace NzbDrone.Core.CustomFormats diff --git a/src/NzbDrone.Core/CustomFormats/Specifications/ICustomFormatSpecification.cs b/src/NzbDrone.Core/CustomFormats/Specifications/ICustomFormatSpecification.cs index 1ccdff7918..d10d6dbc81 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/CustomFormats/Specifications/IndexerFlagSpecification.cs b/src/NzbDrone.Core/CustomFormats/Specifications/IndexerFlagSpecification.cs index 4af7aef16c..ccd0abe1cd 100644 --- a/src/NzbDrone.Core/CustomFormats/Specifications/IndexerFlagSpecification.cs +++ b/src/NzbDrone.Core/CustomFormats/Specifications/IndexerFlagSpecification.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using FluentValidation; using NzbDrone.Core.Annotations; using NzbDrone.Core.Parser.Model; diff --git a/src/NzbDrone.Core/CustomFormats/Specifications/LanguageSpecification.cs b/src/NzbDrone.Core/CustomFormats/Specifications/LanguageSpecification.cs index 82c20f35b7..490c985e8a 100644 --- a/src/NzbDrone.Core/CustomFormats/Specifications/LanguageSpecification.cs +++ b/src/NzbDrone.Core/CustomFormats/Specifications/LanguageSpecification.cs @@ -2,7 +2,6 @@ using FluentValidation; using NzbDrone.Core.Annotations; using NzbDrone.Core.Languages; -using NzbDrone.Core.Parser.Model; using NzbDrone.Core.Validation; namespace NzbDrone.Core.CustomFormats diff --git a/src/NzbDrone.Core/CustomFormats/Specifications/QualityModifierSpecification.cs b/src/NzbDrone.Core/CustomFormats/Specifications/QualityModifierSpecification.cs index e9d4b03ee8..3be30fe41a 100644 --- a/src/NzbDrone.Core/CustomFormats/Specifications/QualityModifierSpecification.cs +++ b/src/NzbDrone.Core/CustomFormats/Specifications/QualityModifierSpecification.cs @@ -1,7 +1,6 @@ using System; using FluentValidation; using NzbDrone.Core.Annotations; -using NzbDrone.Core.Parser.Model; using NzbDrone.Core.Qualities; using NzbDrone.Core.Validation; diff --git a/src/NzbDrone.Core/CustomFormats/Specifications/ReleaseGroupSpecification.cs b/src/NzbDrone.Core/CustomFormats/Specifications/ReleaseGroupSpecification.cs index 87bf879777..e8e993222f 100644 --- a/src/NzbDrone.Core/CustomFormats/Specifications/ReleaseGroupSpecification.cs +++ b/src/NzbDrone.Core/CustomFormats/Specifications/ReleaseGroupSpecification.cs @@ -1,5 +1,3 @@ -using NzbDrone.Core.Parser.Model; - namespace NzbDrone.Core.CustomFormats { public class ReleaseGroupSpecification : RegexSpecificationBase diff --git a/src/NzbDrone.Core/CustomFormats/Specifications/ReleaseTitleSpecification.cs b/src/NzbDrone.Core/CustomFormats/Specifications/ReleaseTitleSpecification.cs index 6873bc2c12..1c59b92942 100644 --- a/src/NzbDrone.Core/CustomFormats/Specifications/ReleaseTitleSpecification.cs +++ b/src/NzbDrone.Core/CustomFormats/Specifications/ReleaseTitleSpecification.cs @@ -1,6 +1,3 @@ -using System.Collections.Generic; -using NzbDrone.Core.Parser.Model; - namespace NzbDrone.Core.CustomFormats { public class ReleaseTitleSpecification : RegexSpecificationBase diff --git a/src/NzbDrone.Core/CustomFormats/Specifications/ResolutionSpecification.cs b/src/NzbDrone.Core/CustomFormats/Specifications/ResolutionSpecification.cs index 00878c8463..6889605a49 100644 --- a/src/NzbDrone.Core/CustomFormats/Specifications/ResolutionSpecification.cs +++ b/src/NzbDrone.Core/CustomFormats/Specifications/ResolutionSpecification.cs @@ -1,7 +1,6 @@ using FluentValidation; using NzbDrone.Core.Annotations; using NzbDrone.Core.Parser; -using NzbDrone.Core.Parser.Model; using NzbDrone.Core.Validation; namespace NzbDrone.Core.CustomFormats diff --git a/src/NzbDrone.Core/CustomFormats/Specifications/SizeSpecification.cs b/src/NzbDrone.Core/CustomFormats/Specifications/SizeSpecification.cs index 7b3f91f460..257904a305 100644 --- a/src/NzbDrone.Core/CustomFormats/Specifications/SizeSpecification.cs +++ b/src/NzbDrone.Core/CustomFormats/Specifications/SizeSpecification.cs @@ -1,7 +1,5 @@ -using System.Collections.Generic; using FluentValidation; using NzbDrone.Core.Annotations; -using NzbDrone.Core.Parser.Model; using NzbDrone.Core.Validation; namespace NzbDrone.Core.CustomFormats diff --git a/src/NzbDrone.Core/CustomFormats/Specifications/SourceSpecification.cs b/src/NzbDrone.Core/CustomFormats/Specifications/SourceSpecification.cs index 0ff8973bf9..2e92c1ba66 100644 --- a/src/NzbDrone.Core/CustomFormats/Specifications/SourceSpecification.cs +++ b/src/NzbDrone.Core/CustomFormats/Specifications/SourceSpecification.cs @@ -1,6 +1,5 @@ using FluentValidation; using NzbDrone.Core.Annotations; -using NzbDrone.Core.Parser.Model; using NzbDrone.Core.Qualities; using NzbDrone.Core.Validation; diff --git a/src/NzbDrone.Core/Datastore/Migration/212_postgres_update_timestamp_columns_to_with_timezone.cs b/src/NzbDrone.Core/Datastore/Migration/212_postgres_update_timestamp_columns_to_with_timezone.cs index eadebdbf96..3d0e4bd8cf 100644 --- a/src/NzbDrone.Core/Datastore/Migration/212_postgres_update_timestamp_columns_to_with_timezone.cs +++ b/src/NzbDrone.Core/Datastore/Migration/212_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/Download/Clients/FreeboxDownload/TorrentFreeboxDownload.cs b/src/NzbDrone.Core/Download/Clients/FreeboxDownload/TorrentFreeboxDownload.cs index 2ec6a37779..617b44c5d7 100644 --- a/src/NzbDrone.Core/Download/Clients/FreeboxDownload/TorrentFreeboxDownload.cs +++ b/src/NzbDrone.Core/Download/Clients/FreeboxDownload/TorrentFreeboxDownload.cs @@ -9,7 +9,6 @@ using NzbDrone.Common.Http; using NzbDrone.Core.Configuration; using NzbDrone.Core.Download.Clients.FreeboxDownload.Responses; -using NzbDrone.Core.Download.Clients.QBittorrent; using NzbDrone.Core.MediaFiles.TorrentInfo; using NzbDrone.Core.Organizer; using NzbDrone.Core.Parser.Model; diff --git a/src/NzbDrone.Core/Download/Pending/PendingReleaseService.cs b/src/NzbDrone.Core/Download/Pending/PendingReleaseService.cs index 14505a2b0f..85dc44e706 100644 --- a/src/NzbDrone.Core/Download/Pending/PendingReleaseService.cs +++ b/src/NzbDrone.Core/Download/Pending/PendingReleaseService.cs @@ -10,7 +10,6 @@ using NzbDrone.Core.Download.Aggregation; using NzbDrone.Core.Indexers; using NzbDrone.Core.Jobs; -using NzbDrone.Core.Languages; using NzbDrone.Core.Messaging.Events; using NzbDrone.Core.Movies; using NzbDrone.Core.Movies.Events; diff --git a/src/NzbDrone.Core/Indexers/Newznab/NewznabCategoryFieldOptionsConverter.cs b/src/NzbDrone.Core/Indexers/Newznab/NewznabCategoryFieldOptionsConverter.cs index 8769330d51..9572f1df2b 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/Rarbg/Rarbg.cs b/src/NzbDrone.Core/Indexers/Rarbg/Rarbg.cs index be3a4a744b..e180695ef1 100644 --- a/src/NzbDrone.Core/Indexers/Rarbg/Rarbg.cs +++ b/src/NzbDrone.Core/Indexers/Rarbg/Rarbg.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Net; using NLog; using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Common.Extensions; diff --git a/src/NzbDrone.Core/MediaFiles/MediaInfo/MediaInfoFormatter.cs b/src/NzbDrone.Core/MediaFiles/MediaInfo/MediaInfoFormatter.cs index f78a253eb8..686d1fd455 100644 --- a/src/NzbDrone.Core/MediaFiles/MediaInfo/MediaInfoFormatter.cs +++ b/src/NzbDrone.Core/MediaFiles/MediaInfo/MediaInfoFormatter.cs @@ -2,7 +2,6 @@ using System.Linq; using System.Text.RegularExpressions; using NLog; -using NLog.Fluent; using NzbDrone.Common.Extensions; using NzbDrone.Common.Instrumentation; using NzbDrone.Common.Instrumentation.Extensions; diff --git a/src/NzbDrone.Core/MediaFiles/MediaInfo/VideoFileInfoReader.cs b/src/NzbDrone.Core/MediaFiles/MediaInfo/VideoFileInfoReader.cs index f5a5f06bc8..e6f313714d 100644 --- a/src/NzbDrone.Core/MediaFiles/MediaInfo/VideoFileInfoReader.cs +++ b/src/NzbDrone.Core/MediaFiles/MediaInfo/VideoFileInfoReader.cs @@ -3,7 +3,6 @@ using System.IO; using System.Linq; using FFMpegCore; -using FFMpegCore.Enums; using NLog; using NzbDrone.Common.Disk; using NzbDrone.Common.Extensions; diff --git a/src/NzbDrone.Core/MediaFiles/MovieImport/Specifications/MatchesGrabSpecification.cs b/src/NzbDrone.Core/MediaFiles/MovieImport/Specifications/MatchesGrabSpecification.cs index 658c2b735c..0cabb7c3e2 100644 --- a/src/NzbDrone.Core/MediaFiles/MovieImport/Specifications/MatchesGrabSpecification.cs +++ b/src/NzbDrone.Core/MediaFiles/MovieImport/Specifications/MatchesGrabSpecification.cs @@ -3,8 +3,6 @@ using NzbDrone.Common.Extensions; using NzbDrone.Core.DecisionEngine; using NzbDrone.Core.Download; -using NzbDrone.Core.History; -using NzbDrone.Core.Parser; using NzbDrone.Core.Parser.Model; namespace NzbDrone.Core.MediaFiles.MovieImport.Specifications diff --git a/src/NzbDrone.Core/Movies/AddMovieService.cs b/src/NzbDrone.Core/Movies/AddMovieService.cs index 71b94ea886..798be5f969 100644 --- a/src/NzbDrone.Core/Movies/AddMovieService.cs +++ b/src/NzbDrone.Core/Movies/AddMovieService.cs @@ -8,10 +8,8 @@ using NzbDrone.Common.EnsureThat; using NzbDrone.Core.Exceptions; using NzbDrone.Core.MetadataSource; -using NzbDrone.Core.Movies.Collections; using NzbDrone.Core.Organizer; using NzbDrone.Core.Parser; -using NzbDrone.Core.RootFolders; namespace NzbDrone.Core.Movies { diff --git a/src/NzbDrone.Core/Movies/MovieRepository.cs b/src/NzbDrone.Core/Movies/MovieRepository.cs index f3b3df5146..dede0dbe86 100644 --- a/src/NzbDrone.Core/Movies/MovieRepository.cs +++ b/src/NzbDrone.Core/Movies/MovieRepository.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.IO; using System.Linq; using Dapper; using NzbDrone.Core.Datastore; diff --git a/src/NzbDrone.Core/Movies/MovieService.cs b/src/NzbDrone.Core/Movies/MovieService.cs index 784602e16c..f0211d5289 100644 --- a/src/NzbDrone.Core/Movies/MovieService.cs +++ b/src/NzbDrone.Core/Movies/MovieService.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Linq; using NLog; -using NzbDrone.Common.EnsureThat; using NzbDrone.Common.Extensions; using NzbDrone.Core.Configuration; using NzbDrone.Core.Datastore; diff --git a/src/NzbDrone.Core/Notifications/Notifiarr/NotifiarrProxy.cs b/src/NzbDrone.Core/Notifications/Notifiarr/NotifiarrProxy.cs index 512130bda7..52a60233ab 100644 --- a/src/NzbDrone.Core/Notifications/Notifiarr/NotifiarrProxy.cs +++ b/src/NzbDrone.Core/Notifications/Notifiarr/NotifiarrProxy.cs @@ -1,5 +1,4 @@ using System.Net.Http; -using NLog; using NzbDrone.Common.Http; using NzbDrone.Common.Serializer; using NzbDrone.Core.Notifications.Webhook; diff --git a/src/NzbDrone.Core/Notifications/NotificationService.cs b/src/NzbDrone.Core/Notifications/NotificationService.cs index cb2166ff5e..c3ea11b66a 100644 --- a/src/NzbDrone.Core/Notifications/NotificationService.cs +++ b/src/NzbDrone.Core/Notifications/NotificationService.cs @@ -3,7 +3,6 @@ using NLog; using NzbDrone.Common.Extensions; using NzbDrone.Core.Download; -using NzbDrone.Core.Download.TrackedDownloads; using NzbDrone.Core.HealthCheck; using NzbDrone.Core.MediaFiles.Events; using NzbDrone.Core.Messaging.Events; diff --git a/src/NzbDrone.Core/Notifications/Plex/PlexTv/PlexTvService.cs b/src/NzbDrone.Core/Notifications/Plex/PlexTv/PlexTvService.cs index 2dc46f09ac..404cfef0a4 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/WebhookAddedPayload.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookAddedPayload.cs index f7e02a7f50..1895bb8c6c 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookAddedPayload.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookAddedPayload.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using NzbDrone.Core.Movies; namespace NzbDrone.Core.Notifications.Webhook diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs index 5b7306411b..bf2b019e8a 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookBase.cs @@ -4,7 +4,6 @@ using NzbDrone.Core.Configuration; using NzbDrone.Core.MediaFiles; using NzbDrone.Core.Movies; -using NzbDrone.Core.Parser.Model; using NzbDrone.Core.ThingiProvider; namespace NzbDrone.Core.Notifications.Webhook diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookMovieFileMediaInfo.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookMovieFileMediaInfo.cs index 55db749549..c6aa8ee2a6 100644 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookMovieFileMediaInfo.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookMovieFileMediaInfo.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Linq; using NzbDrone.Core.MediaFiles; diff --git a/src/NzbDrone.Core/Notifications/Webhook/WebhookRelease.cs b/src/NzbDrone.Core/Notifications/Webhook/WebhookRelease.cs index e0d7c3eeaf..74e4fc9b93 100755 --- a/src/NzbDrone.Core/Notifications/Webhook/WebhookRelease.cs +++ b/src/NzbDrone.Core/Notifications/Webhook/WebhookRelease.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Data; using System.Linq; using NzbDrone.Core.Parser.Model; using NzbDrone.Core.Qualities; diff --git a/src/NzbDrone.Core/Notifications/Xbmc/XbmcService.cs b/src/NzbDrone.Core/Notifications/Xbmc/XbmcService.cs index b749b605ab..f466e787b4 100644 --- a/src/NzbDrone.Core/Notifications/Xbmc/XbmcService.cs +++ b/src/NzbDrone.Core/Notifications/Xbmc/XbmcService.cs @@ -1,9 +1,7 @@ using System; -using System.IO; using System.Linq; using FluentValidation.Results; using NLog; -using NzbDrone.Common.Disk; using NzbDrone.Core.Movies; namespace NzbDrone.Core.Notifications.Xbmc diff --git a/src/NzbDrone.Core/Parser/Model/ParsedMovieInfo.cs b/src/NzbDrone.Core/Parser/Model/ParsedMovieInfo.cs index 3cacf47799..fc649c607e 100644 --- a/src/NzbDrone.Core/Parser/Model/ParsedMovieInfo.cs +++ b/src/NzbDrone.Core/Parser/Model/ParsedMovieInfo.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using Newtonsoft.Json; using NzbDrone.Core.Languages; using NzbDrone.Core.Qualities; diff --git a/src/NzbDrone.Core/Update/UpdatePackage.cs b/src/NzbDrone.Core/Update/UpdatePackage.cs index ca97ad5d0c..63f966a4d0 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 50c09f7554..8d82fefcb6 100644 --- a/src/NzbDrone.Core/Update/UpdatePackageProvider.cs +++ b/src/NzbDrone.Core/Update/UpdatePackageProvider.cs @@ -1,7 +1,6 @@ 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.Integration.Test/ApiTests/TagFixture.cs b/src/NzbDrone.Integration.Test/ApiTests/TagFixture.cs index 15fc061cb1..84b09c2a1c 100644 --- a/src/NzbDrone.Integration.Test/ApiTests/TagFixture.cs +++ b/src/NzbDrone.Integration.Test/ApiTests/TagFixture.cs @@ -1,4 +1,3 @@ -using System.Linq; using FluentAssertions; using NUnit.Framework; using Radarr.Api.V3.Tags; diff --git a/src/NzbDrone.Integration.Test/Client/IndexerClient.cs b/src/NzbDrone.Integration.Test/Client/IndexerClient.cs index 190ae13bbc..1d10de1093 100644 --- a/src/NzbDrone.Integration.Test/Client/IndexerClient.cs +++ b/src/NzbDrone.Integration.Test/Client/IndexerClient.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using Radarr.Api.V3.Indexers; using RestSharp; diff --git a/src/NzbDrone.Integration.Test/IntegrationTest.cs b/src/NzbDrone.Integration.Test/IntegrationTest.cs index 6dc3671e50..a9d3494987 100644 --- a/src/NzbDrone.Integration.Test/IntegrationTest.cs +++ b/src/NzbDrone.Integration.Test/IntegrationTest.cs @@ -1,8 +1,5 @@ -using System.Collections.Generic; using System.Threading; -using Microsoft.Extensions.Configuration; using NLog; -using Npgsql; using NUnit.Framework; using NzbDrone.Common.Extensions; using NzbDrone.Core.Datastore; diff --git a/src/NzbDrone.Test.Common/NzbDroneRunner.cs b/src/NzbDrone.Test.Common/NzbDroneRunner.cs index 4b4531f52f..e572473508 100644 --- a/src/NzbDrone.Test.Common/NzbDroneRunner.cs +++ b/src/NzbDrone.Test.Common/NzbDroneRunner.cs @@ -2,7 +2,6 @@ using System.Collections.Specialized; using System.Diagnostics; using System.IO; -using System.Linq; using System.Threading; using System.Xml.Linq; using NLog; diff --git a/src/NzbDrone.Update/UpdateEngine/DetectExistingVersion.cs b/src/NzbDrone.Update/UpdateEngine/DetectExistingVersion.cs index 31393ef085..680cc316dd 100644 --- a/src/NzbDrone.Update/UpdateEngine/DetectExistingVersion.cs +++ b/src/NzbDrone.Update/UpdateEngine/DetectExistingVersion.cs @@ -1,8 +1,6 @@ using System; using System.IO; using NLog; -using NzbDrone.Common.EnvironmentInfo; -using NzbDrone.Common.Extensions; namespace NzbDrone.Update.UpdateEngine { diff --git a/src/NzbDrone.Windows/Disk/FolderMount.cs b/src/NzbDrone.Windows/Disk/FolderMount.cs index 65fbcf5dee..4578875326 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 { diff --git a/src/Radarr.Api.V3/Collections/CollectionMovieResource.cs b/src/Radarr.Api.V3/Collections/CollectionMovieResource.cs index d7cea65035..2c8a202498 100644 --- a/src/Radarr.Api.V3/Collections/CollectionMovieResource.cs +++ b/src/Radarr.Api.V3/Collections/CollectionMovieResource.cs @@ -1,11 +1,6 @@ -using System; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using NzbDrone.Core.MediaCover; using NzbDrone.Core.Movies; -using NzbDrone.Core.Movies.Collections; namespace Radarr.Api.V3.Collections { diff --git a/src/Radarr.Api.V3/Collections/CollectionUpdateCollectionResource.cs b/src/Radarr.Api.V3/Collections/CollectionUpdateCollectionResource.cs index 36fc06875d..501c23ce18 100644 --- a/src/Radarr.Api.V3/Collections/CollectionUpdateCollectionResource.cs +++ b/src/Radarr.Api.V3/Collections/CollectionUpdateCollectionResource.cs @@ -1,9 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - namespace Radarr.Api.V3.Collections { public class CollectionUpdateCollectionResource diff --git a/src/Radarr.Api.V3/Collections/CollectionUpdateResource.cs b/src/Radarr.Api.V3/Collections/CollectionUpdateResource.cs index d488da47b9..3bead71953 100644 --- a/src/Radarr.Api.V3/Collections/CollectionUpdateResource.cs +++ b/src/Radarr.Api.V3/Collections/CollectionUpdateResource.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using NzbDrone.Core.Movies; diff --git a/src/Radarr.Api.V3/Commands/CommandController.cs b/src/Radarr.Api.V3/Commands/CommandController.cs index ff7a0b2194..77c63d5979 100644 --- a/src/Radarr.Api.V3/Commands/CommandController.cs +++ b/src/Radarr.Api.V3/Commands/CommandController.cs @@ -3,7 +3,6 @@ using System.IO; using System.Linq; using Microsoft.AspNetCore.Mvc; -using NzbDrone.Common; using NzbDrone.Common.Composition; using NzbDrone.Common.Serializer; using NzbDrone.Common.TPL; diff --git a/src/Radarr.Api.V3/Config/UiConfigController.cs b/src/Radarr.Api.V3/Config/UiConfigController.cs index 0b0da4d256..b35b6581c3 100644 --- a/src/Radarr.Api.V3/Config/UiConfigController.cs +++ b/src/Radarr.Api.V3/Config/UiConfigController.cs @@ -2,7 +2,6 @@ using System.Reflection; using Microsoft.AspNetCore.Mvc; using NzbDrone.Core.Configuration; -using Radarr.Api.V3.Config; using Radarr.Http; using Radarr.Http.REST.Attributes; diff --git a/src/Radarr.Api.V3/CustomFormats/CustomFormatController.cs b/src/Radarr.Api.V3/CustomFormats/CustomFormatController.cs index 0692ccd7f5..cad3ebbf1f 100644 --- a/src/Radarr.Api.V3/CustomFormats/CustomFormatController.cs +++ b/src/Radarr.Api.V3/CustomFormats/CustomFormatController.cs @@ -1,11 +1,9 @@ -using System; using System.Collections.Generic; using System.Linq; using FluentValidation; using FluentValidation.Results; using Microsoft.AspNetCore.Mvc; using NzbDrone.Common.Extensions; -using NzbDrone.Core.Annotations; using NzbDrone.Core.CustomFormats; using NzbDrone.Core.Validation; using Radarr.Http; diff --git a/src/Radarr.Api.V3/ImportLists/ImportListMoviesController.cs b/src/Radarr.Api.V3/ImportLists/ImportListMoviesController.cs index 64e462681f..65de94f794 100644 --- a/src/Radarr.Api.V3/ImportLists/ImportListMoviesController.cs +++ b/src/Radarr.Api.V3/ImportLists/ImportListMoviesController.cs @@ -1,7 +1,6 @@ using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Mvc; -using NzbDrone.Common.Extensions; using NzbDrone.Core.Configuration; using NzbDrone.Core.ImportLists; using NzbDrone.Core.ImportLists.ImportExclusions; diff --git a/src/Radarr.Api.V3/Indexers/ReleasePushController.cs b/src/Radarr.Api.V3/Indexers/ReleasePushController.cs index 6f70d9d13d..a940a08713 100644 --- a/src/Radarr.Api.V3/Indexers/ReleasePushController.cs +++ b/src/Radarr.Api.V3/Indexers/ReleasePushController.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using System.Linq; -using System.Threading; using FluentValidation; using FluentValidation.Results; using Microsoft.AspNetCore.Mvc; diff --git a/src/Radarr.Api.V3/MovieFiles/MovieFileListResource.cs b/src/Radarr.Api.V3/MovieFiles/MovieFileListResource.cs index 0838780379..dce4f35f01 100644 --- a/src/Radarr.Api.V3/MovieFiles/MovieFileListResource.cs +++ b/src/Radarr.Api.V3/MovieFiles/MovieFileListResource.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using NzbDrone.Core.Languages; -using NzbDrone.Core.Parser.Model; using NzbDrone.Core.Qualities; namespace Radarr.Api.V3.MovieFiles diff --git a/src/Radarr.Api.V3/MovieFiles/MovieFileResource.cs b/src/Radarr.Api.V3/MovieFiles/MovieFileResource.cs index 06bc5333c8..9a2e582370 100644 --- a/src/Radarr.Api.V3/MovieFiles/MovieFileResource.cs +++ b/src/Radarr.Api.V3/MovieFiles/MovieFileResource.cs @@ -4,7 +4,6 @@ using NzbDrone.Core.DecisionEngine.Specifications; using NzbDrone.Core.Languages; using NzbDrone.Core.MediaFiles; -using NzbDrone.Core.Parser.Model; using NzbDrone.Core.Qualities; using Radarr.Api.V3.CustomFormats; using Radarr.Http.REST; diff --git a/src/Radarr.Api.V3/Movies/AlternativeTitleController.cs b/src/Radarr.Api.V3/Movies/AlternativeTitleController.cs index 22cc7bda0f..2cce79175f 100644 --- a/src/Radarr.Api.V3/Movies/AlternativeTitleController.cs +++ b/src/Radarr.Api.V3/Movies/AlternativeTitleController.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using NzbDrone.Core.Movies; diff --git a/src/Radarr.Api.V3/Movies/MovieController.cs b/src/Radarr.Api.V3/Movies/MovieController.cs index 8908a78338..29bff5a568 100644 --- a/src/Radarr.Api.V3/Movies/MovieController.cs +++ b/src/Radarr.Api.V3/Movies/MovieController.cs @@ -25,7 +25,6 @@ using NzbDrone.Core.Validation.Paths; using NzbDrone.SignalR; using Radarr.Http; -using Radarr.Http.Extensions; using Radarr.Http.REST; using Radarr.Http.REST.Attributes; diff --git a/src/Radarr.Api.V3/Movies/RenameMovieController.cs b/src/Radarr.Api.V3/Movies/RenameMovieController.cs index 4af55fd3e5..87e65e1e93 100644 --- a/src/Radarr.Api.V3/Movies/RenameMovieController.cs +++ b/src/Radarr.Api.V3/Movies/RenameMovieController.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using NzbDrone.Core.MediaFiles; diff --git a/src/Radarr.Api.V3/Parse/ParseController.cs b/src/Radarr.Api.V3/Parse/ParseController.cs index 2aa9933347..46a0ab6c3b 100644 --- a/src/Radarr.Api.V3/Parse/ParseController.cs +++ b/src/Radarr.Api.V3/Parse/ParseController.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using NzbDrone.Common.Extensions; using NzbDrone.Core.Configuration; diff --git a/src/Radarr.Api.V3/Update/UpdateController.cs b/src/Radarr.Api.V3/Update/UpdateController.cs index fc8cf033bf..a40c7d266e 100644 --- a/src/Radarr.Api.V3/Update/UpdateController.cs +++ b/src/Radarr.Api.V3/Update/UpdateController.cs @@ -2,7 +2,6 @@ using System.Linq; using Microsoft.AspNetCore.Mvc; using NzbDrone.Common.EnvironmentInfo; -using NzbDrone.Common.Extensions; using NzbDrone.Core.Update; using NzbDrone.Core.Update.History; using Radarr.Http; diff --git a/src/Radarr.Http/ApiInfoResource.cs b/src/Radarr.Http/ApiInfoResource.cs index b82a419927..eff879d8b8 100644 --- a/src/Radarr.Http/ApiInfoResource.cs +++ b/src/Radarr.Http/ApiInfoResource.cs @@ -1,8 +1,4 @@ -using System; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Radarr.Http { diff --git a/src/Radarr.Http/Extensions/RequestExtensions.cs b/src/Radarr.Http/Extensions/RequestExtensions.cs index 570f163b8f..f13712fb47 100644 --- a/src/Radarr.Http/Extensions/RequestExtensions.cs +++ b/src/Radarr.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/Radarr.Http/Frontend/StaticResourceController.cs b/src/Radarr.Http/Frontend/StaticResourceController.cs index e0eeeefc5e..6ce9c79664 100644 --- a/src/Radarr.Http/Frontend/StaticResourceController.cs +++ b/src/Radarr.Http/Frontend/StaticResourceController.cs @@ -4,8 +4,6 @@ using Microsoft.AspNetCore.Cors; using Microsoft.AspNetCore.Mvc; using NLog; -using NzbDrone.Common.EnvironmentInfo; -using NzbDrone.Core.Configuration; using Radarr.Http.Extensions; using Radarr.Http.Frontend.Mappers; diff --git a/src/Radarr.Http/Middleware/StartingUpMiddleware.cs b/src/Radarr.Http/Middleware/StartingUpMiddleware.cs index 368ed877af..a9583fe208 100644 --- a/src/Radarr.Http/Middleware/StartingUpMiddleware.cs +++ b/src/Radarr.Http/Middleware/StartingUpMiddleware.cs @@ -1,11 +1,8 @@ -using System.Buffers; using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Common.Serializer; -using NzbDrone.Core.Lifecycle; -using NzbDrone.Core.Messaging.Events; using Radarr.Http.Extensions; namespace Radarr.Http.Middleware