Remove empty constructors

This commit is contained in:
Bogdan 2023-05-18 20:44:05 +03:00
parent 156def3138
commit fd76d67bae
25 changed files with 6 additions and 102 deletions

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Threading;
using Moq;
using NUnit.Framework;
@ -210,10 +210,6 @@ namespace NzbDrone.Core.Test.Messaging.Commands
public class CommandB : Command
{
public CommandB()
{
}
public override string CompletionMessage => null;
}
}

View File

@ -4,8 +4,5 @@ namespace NzbDrone.Core.Download
{
public class DownloadsProcessedEvent : IEvent
{
public DownloadsProcessedEvent()
{
}
}
}

View File

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

View File

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

View File

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

View File

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

View File

@ -12,10 +12,6 @@ namespace NzbDrone.Core.ImportLists.CouchPotato
{
private ImportListResponse _importListResponse;
public CouchPotatoParser()
{
}
public IList<ImportListMovie> ParseResponse(ImportListResponse importListResponse)
{
_importListResponse = importListResponse;

View File

@ -14,10 +14,6 @@ namespace NzbDrone.Core.ImportLists.Plex
{
private ImportListResponse _importResponse;
public PlexParser()
{
}
public virtual IList<ImportListMovie> ParseResponse(ImportListResponse importResponse)
{
List<PlexWatchlistItem> items;

View File

@ -9,10 +9,6 @@ namespace NzbDrone.Core.ImportLists.RadarrList
{
public class RadarrListParser : IParseImportListResponse
{
public RadarrListParser()
{
}
public IList<ImportListMovie> ParseResponse(ImportListResponse importListResponse)
{
var importResponse = importListResponse;

View File

@ -1,4 +1,4 @@
using FluentValidation;
using FluentValidation;
using NzbDrone.Core.Annotations;
using NzbDrone.Core.ThingiProvider;
using NzbDrone.Core.Validation;
@ -19,10 +19,6 @@ namespace NzbDrone.Core.ImportLists.RadarrList2.IMDbList
{
private static readonly IMDbSettingsValidator Validator = new IMDbSettingsValidator();
public IMDbListSettings()
{
}
[FieldDefinition(1, Label = "List/User ID", HelpText = "IMDb list ID (e.g ls12345678), IMDb user ID (e.g. ur12345678), 'top250' or 'popular'")]
public string ListId { get; set; }

View File

@ -11,10 +11,6 @@ namespace NzbDrone.Core.ImportLists.StevenLu
{
private ImportListResponse _importResponse;
public StevenLuParser()
{
}
public IList<ImportListMovie> ParseResponse(ImportListResponse importResponse)
{
_importResponse = importResponse;

View File

@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using Newtonsoft.Json;
using NLog;
using NzbDrone.Common.Http;
@ -13,10 +13,6 @@ namespace NzbDrone.Core.ImportLists.TMDb.Company
public Logger Logger { get; set; }
public int MaxPages { get; set; }
public TMDbCompanyRequestGenerator()
{
}
public virtual ImportListPageableRequestChain GetMovies()
{
var pageableRequests = new ImportListPageableRequestChain();

View File

@ -13,10 +13,6 @@ namespace NzbDrone.Core.ImportLists.TMDb.Keyword
public Logger Logger { get; set; }
public int MaxPages { get; set; }
public TMDbKeywordRequestGenerator()
{
}
public virtual ImportListPageableRequestChain GetMovies()
{
var pageableRequests = new ImportListPageableRequestChain();

View File

@ -13,10 +13,6 @@ namespace NzbDrone.Core.ImportLists.TMDb.List
public Logger Logger { get; set; }
public int MaxPages { get; set; }
public TMDbListRequestGenerator()
{
}
public virtual ImportListPageableRequestChain GetMovies()
{
var pageableRequests = new ImportListPageableRequestChain();

View File

@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using NLog;
using NzbDrone.Common.Http;
@ -11,10 +11,6 @@ namespace NzbDrone.Core.ImportLists.TMDb.Person
public IHttpRequestBuilderFactory RequestBuilder { get; set; }
public Logger Logger { get; set; }
public TMDbPersonRequestGenerator()
{
}
public virtual ImportListPageableRequestChain GetMovies()
{
var pageableRequests = new ImportListPageableRequestChain();

View File

@ -1,4 +1,4 @@
using FluentValidation;
using FluentValidation;
using NzbDrone.Core.ThingiProvider;
using NzbDrone.Core.Validation;
@ -7,18 +7,12 @@ namespace NzbDrone.Core.ImportLists.TMDb
public class TMDbSettingsBaseValidator<TSettings> : AbstractValidator<TSettings>
where TSettings : TMDbSettingsBase<TSettings>
{
public TMDbSettingsBaseValidator()
{
}
}
public class TMDbSettingsBase<TSettings> : IProviderConfig
where TSettings : TMDbSettingsBase<TSettings>
{
protected virtual AbstractValidator<TSettings> Validator => new TMDbSettingsBaseValidator<TSettings>();
public TMDbSettingsBase()
{
}
public NzbDroneValidationResult Validate()
{

View File

@ -15,10 +15,6 @@ namespace NzbDrone.Core.ImportLists.TMDb.User
public int MaxPages { get; set; }
public TMDbUserRequestGenerator()
{
}
public virtual ImportListPageableRequestChain GetMovies()
{
var pageableRequests = new ImportListPageableRequestChain();

View File

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

View File

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

View File

@ -10,10 +10,6 @@ namespace NzbDrone.Core.Indexers.TorrentPotato
{
public TorrentPotatoSettings Settings { get; set; }
public TorrentPotatoRequestGenerator()
{
}
public virtual IndexerPageableRequestChain GetRecentRequests()
{
var pageableRequests = new IndexerPageableRequestChain();

View File

@ -9,9 +9,5 @@ namespace NzbDrone.Core.MediaFiles.Commands
public override bool SendUpdatesToClient => true;
public override bool RequiresDiskAccess => true;
public RenameMovieCommand()
{
}
}
}

View File

@ -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<SynologyIndexerSettings>
{
public SynologyIndexerSettingsValidator()
{
}
}
public class SynologyIndexerSettings : IProviderConfig

View File

@ -8,10 +8,6 @@ namespace Radarr.Api.V3.Credits
{
public class CreditResource : RestResource
{
public CreditResource()
{
}
public string PersonName { get; set; }
public string CreditTmdbId { get; set; }
public int PersonTmdbId { get; set; }

View File

@ -8,10 +8,6 @@ namespace Radarr.Api.V3.Movies
{
public class AlternativeTitleResource : RestResource
{
public AlternativeTitleResource()
{
}
// Todo: Sorters should be done completely on the client
// Todo: Is there an easy way to keep IgnoreArticlesWhenSorting in sync between, Series, History, Missing?
// Todo: We should get the entire Profile instead of ID and Name separately

View File

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