From a39be51d3ed5434dad49e37e4305793f7b6ea676 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Thu, 11 May 2023 19:29:30 +0300 Subject: [PATCH] Remove empty constructors Closes #2474 --- src/NzbDrone.Core/Download/DownloadsProcessedEvent.cs | 5 +---- .../MetadataSource/Goodreads/Resources/ListResource.cs | 4 ---- .../OwnedBooks/GoodreadsOwnedBooksNotificationSettings.cs | 4 ---- .../Notifications/Synology/SynologyIndexerSettings.cs | 5 +---- src/Readarr.Http/ApiInfoController.cs | 4 ---- 5 files changed, 2 insertions(+), 20 deletions(-) diff --git a/src/NzbDrone.Core/Download/DownloadsProcessedEvent.cs b/src/NzbDrone.Core/Download/DownloadsProcessedEvent.cs index 8d85fd8c5..feaaf90d9 100644 --- a/src/NzbDrone.Core/Download/DownloadsProcessedEvent.cs +++ b/src/NzbDrone.Core/Download/DownloadsProcessedEvent.cs @@ -1,11 +1,8 @@ -using NzbDrone.Common.Messaging; +using NzbDrone.Common.Messaging; namespace NzbDrone.Core.Download { public class DownloadsProcessedEvent : IEvent { - public DownloadsProcessedEvent() - { - } } } diff --git a/src/NzbDrone.Core/MetadataSource/Goodreads/Resources/ListResource.cs b/src/NzbDrone.Core/MetadataSource/Goodreads/Resources/ListResource.cs index b54081bf4..a3e3caa8b 100644 --- a/src/NzbDrone.Core/MetadataSource/Goodreads/Resources/ListResource.cs +++ b/src/NzbDrone.Core/MetadataSource/Goodreads/Resources/ListResource.cs @@ -11,10 +11,6 @@ namespace NzbDrone.Core.MetadataSource.Goodreads [DebuggerDisplay("{DebuggerDisplay,nq}")] public sealed class ListResource : GoodreadsResource { - public ListResource() - { - } - public override string ElementName => "list"; public int Page { get; private set; } diff --git a/src/NzbDrone.Core/Notifications/Goodreads/OwnedBooks/GoodreadsOwnedBooksNotificationSettings.cs b/src/NzbDrone.Core/Notifications/Goodreads/OwnedBooks/GoodreadsOwnedBooksNotificationSettings.cs index dbdddfc8e..fc960ee9f 100644 --- a/src/NzbDrone.Core/Notifications/Goodreads/OwnedBooks/GoodreadsOwnedBooksNotificationSettings.cs +++ b/src/NzbDrone.Core/Notifications/Goodreads/OwnedBooks/GoodreadsOwnedBooksNotificationSettings.cs @@ -17,10 +17,6 @@ namespace NzbDrone.Core.Notifications.Goodreads { private static readonly GoodreadsSettingsBaseValidator Validator = new GoodreadsSettingsBaseValidator(); - public GoodreadsOwnedBooksNotificationSettings() - { - } - [FieldDefinition(1, Label = "Condition", Type = FieldType.Select, SelectOptions = typeof(OwnedBookCondition))] public int Condition { get; set; } = (int)OwnedBookCondition.BrandNew; diff --git a/src/NzbDrone.Core/Notifications/Synology/SynologyIndexerSettings.cs b/src/NzbDrone.Core/Notifications/Synology/SynologyIndexerSettings.cs index 7b1084570..58b4322e8 100644 --- a/src/NzbDrone.Core/Notifications/Synology/SynologyIndexerSettings.cs +++ b/src/NzbDrone.Core/Notifications/Synology/SynologyIndexerSettings.cs @@ -1,4 +1,4 @@ -using FluentValidation; +using FluentValidation; using NzbDrone.Core.Annotations; using NzbDrone.Core.ThingiProvider; using NzbDrone.Core.Validation; @@ -7,9 +7,6 @@ namespace NzbDrone.Core.Notifications.Synology { public class SynologyIndexerSettingsValidator : AbstractValidator { - public SynologyIndexerSettingsValidator() - { - } } public class SynologyIndexerSettings : IProviderConfig diff --git a/src/Readarr.Http/ApiInfoController.cs b/src/Readarr.Http/ApiInfoController.cs index 9625f0ce3..bb3a17f4b 100644 --- a/src/Readarr.Http/ApiInfoController.cs +++ b/src/Readarr.Http/ApiInfoController.cs @@ -5,10 +5,6 @@ namespace Readarr.Http { public class ApiInfoController : Controller { - public ApiInfoController() - { - } - [HttpGet("/api")] [Produces("application/json")] public ApiInfoResource GetApiInfo()