Remove empty constructors

This commit is contained in:
Bogdan 2023-05-09 00:20:42 +03:00 committed by Mark McDowall
parent f63e060ac4
commit f93a016be1
16 changed files with 2 additions and 60 deletions

View File

@ -212,10 +212,6 @@ namespace NzbDrone.Core.Test.Messaging.Commands
public class CommandB : Command public class CommandB : Command
{ {
public CommandB()
{
}
public override string CompletionMessage => null; public override string CompletionMessage => null;
} }
} }

View File

@ -1,11 +1,8 @@
using NzbDrone.Common.Messaging; using NzbDrone.Common.Messaging;
namespace NzbDrone.Core.Download namespace NzbDrone.Core.Download
{ {
public class DownloadsProcessedEvent : IEvent public class DownloadsProcessedEvent : IEvent
{ {
public DownloadsProcessedEvent()
{
}
} }
} }

View File

@ -7,9 +7,6 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Plex
{ {
public class PlexMetadataSettingsValidator : AbstractValidator<PlexMetadataSettings> public class PlexMetadataSettingsValidator : AbstractValidator<PlexMetadataSettings>
{ {
public PlexMetadataSettingsValidator()
{
}
} }
public class PlexMetadataSettings : IProviderConfig public class PlexMetadataSettings : IProviderConfig

View File

@ -7,9 +7,6 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Roksbox
{ {
public class RoksboxSettingsValidator : AbstractValidator<RoksboxMetadataSettings> public class RoksboxSettingsValidator : AbstractValidator<RoksboxMetadataSettings>
{ {
public RoksboxSettingsValidator()
{
}
} }
public class RoksboxMetadataSettings : IProviderConfig public class RoksboxMetadataSettings : IProviderConfig

View File

@ -7,9 +7,6 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Wdtv
{ {
public class WdtvSettingsValidator : AbstractValidator<WdtvMetadataSettings> public class WdtvSettingsValidator : AbstractValidator<WdtvMetadataSettings>
{ {
public WdtvSettingsValidator()
{
}
} }
public class WdtvMetadataSettings : IProviderConfig public class WdtvMetadataSettings : IProviderConfig

View File

@ -7,9 +7,6 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc
{ {
public class XbmcSettingsValidator : AbstractValidator<XbmcMetadataSettings> public class XbmcSettingsValidator : AbstractValidator<XbmcMetadataSettings>
{ {
public XbmcSettingsValidator()
{
}
} }
public class XbmcMetadataSettings : IProviderConfig public class XbmcMetadataSettings : IProviderConfig

View File

@ -18,10 +18,6 @@ namespace NzbDrone.Core.ImportLists.Imdb
{ {
private static readonly ImdbSettingsValidator Validator = new ImdbSettingsValidator(); private static readonly ImdbSettingsValidator Validator = new ImdbSettingsValidator();
public ImdbListSettings()
{
}
public string BaseUrl { get; set; } public string BaseUrl { get; set; }
[FieldDefinition(1, Label = "List ID", HelpText = "IMDb list ID (e.g ls12345678)")] [FieldDefinition(1, Label = "List ID", HelpText = "IMDb list ID (e.g ls12345678)")]

View File

@ -11,10 +11,6 @@ namespace NzbDrone.Core.ImportLists.Simkl
{ {
private ImportListResponse _importResponse; private ImportListResponse _importResponse;
public SimklParser()
{
}
public virtual IList<ImportListItemInfo> ParseResponse(ImportListResponse importResponse) public virtual IList<ImportListItemInfo> ParseResponse(ImportListResponse importResponse)
{ {
_importResponse = importResponse; _importResponse = importResponse;

View File

@ -10,10 +10,6 @@ namespace NzbDrone.Core.ImportLists.Simkl.User
public string ClientId { get; set; } public string ClientId { get; set; }
public SimklUserRequestGenerator()
{
}
public virtual ImportListPageableRequestChain GetListItems() public virtual ImportListPageableRequestChain GetListItems()
{ {
var pageableRequests = new ImportListPageableRequestChain(); var pageableRequests = new ImportListPageableRequestChain();

View File

@ -9,10 +9,6 @@ namespace NzbDrone.Core.ImportLists.Trakt.List
public TraktListSettings Settings { get; set; } public TraktListSettings Settings { get; set; }
public string ClientId { get; set; } public string ClientId { get; set; }
public TraktListRequestGenerator()
{
}
public virtual ImportListPageableRequestChain GetListItems() public virtual ImportListPageableRequestChain GetListItems()
{ {
var pageableRequests = new ImportListPageableRequestChain(); var pageableRequests = new ImportListPageableRequestChain();

View File

@ -17,10 +17,6 @@ namespace NzbDrone.Core.ImportLists.Trakt.List
{ {
protected override AbstractValidator<TraktListSettings> Validator => new TraktListSettingsValidator(); protected override AbstractValidator<TraktListSettings> Validator => new TraktListSettingsValidator();
public TraktListSettings()
{
}
[FieldDefinition(1, Label = "Username", HelpText = "Username for the List to import from")] [FieldDefinition(1, Label = "Username", HelpText = "Username for the List to import from")]
public string Username { get; set; } public string Username { get; set; }

View File

@ -10,10 +10,6 @@ namespace NzbDrone.Core.ImportLists.Trakt.Popular
public string ClientId { get; set; } public string ClientId { get; set; }
public TraktPopularRequestGenerator()
{
}
public virtual ImportListPageableRequestChain GetListItems() public virtual ImportListPageableRequestChain GetListItems()
{ {
var pageableRequests = new ImportListPageableRequestChain(); var pageableRequests = new ImportListPageableRequestChain();

View File

@ -11,10 +11,6 @@ namespace NzbDrone.Core.ImportLists.Trakt
{ {
private ImportListResponse _importResponse; private ImportListResponse _importResponse;
public TraktParser()
{
}
public virtual IList<ImportListItemInfo> ParseResponse(ImportListResponse importResponse) public virtual IList<ImportListItemInfo> ParseResponse(ImportListResponse importResponse)
{ {
_importResponse = importResponse; _importResponse = importResponse;

View File

@ -10,10 +10,6 @@ namespace NzbDrone.Core.ImportLists.Trakt.User
public string ClientId { get; set; } public string ClientId { get; set; }
public TraktUserRequestGenerator()
{
}
public virtual ImportListPageableRequestChain GetListItems() public virtual ImportListPageableRequestChain GetListItems()
{ {
var pageableRequests = new ImportListPageableRequestChain(); var pageableRequests = new ImportListPageableRequestChain();

View File

@ -1,4 +1,4 @@
using FluentValidation; using FluentValidation;
using NzbDrone.Core.Annotations; using NzbDrone.Core.Annotations;
using NzbDrone.Core.ThingiProvider; using NzbDrone.Core.ThingiProvider;
using NzbDrone.Core.Validation; using NzbDrone.Core.Validation;
@ -7,9 +7,6 @@ namespace NzbDrone.Core.Notifications.Synology
{ {
public class SynologyIndexerSettingsValidator : AbstractValidator<SynologyIndexerSettings> public class SynologyIndexerSettingsValidator : AbstractValidator<SynologyIndexerSettings>
{ {
public SynologyIndexerSettingsValidator()
{
}
} }
public class SynologyIndexerSettings : IProviderConfig public class SynologyIndexerSettings : IProviderConfig

View File

@ -5,10 +5,6 @@ namespace NzbDrone.Http
{ {
public class ApiInfoController : Controller public class ApiInfoController : Controller
{ {
public ApiInfoController()
{
}
[HttpGet("/api")] [HttpGet("/api")]
[Produces("application/json")] [Produces("application/json")]
public object GetApiInfo() public object GetApiInfo()