mirror of
https://github.com/Radarr/Radarr.git
synced 2024-10-03 22:57:18 +02:00
Remove empty constructors
This commit is contained in:
parent
156def3138
commit
fd76d67bae
@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Threading;
|
||||
using Moq;
|
||||
using NUnit.Framework;
|
||||
@ -210,10 +210,6 @@ public CommandA(int id = 0)
|
||||
|
||||
public class CommandB : Command
|
||||
{
|
||||
public CommandB()
|
||||
{
|
||||
}
|
||||
|
||||
public override string CompletionMessage => null;
|
||||
}
|
||||
}
|
||||
|
@ -4,8 +4,5 @@ namespace NzbDrone.Core.Download
|
||||
{
|
||||
public class DownloadsProcessedEvent : IEvent
|
||||
{
|
||||
public DownloadsProcessedEvent()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -7,9 +7,6 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.MediaBrowser
|
||||
{
|
||||
public class MediaBrowserSettingsValidator : AbstractValidator<MediaBrowserMetadataSettings>
|
||||
{
|
||||
public MediaBrowserSettingsValidator()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class MediaBrowserMetadataSettings : IProviderConfig
|
||||
|
@ -7,9 +7,6 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Roksbox
|
||||
{
|
||||
public class RoksboxSettingsValidator : AbstractValidator<RoksboxMetadataSettings>
|
||||
{
|
||||
public RoksboxSettingsValidator()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class RoksboxMetadataSettings : IProviderConfig
|
||||
|
@ -7,9 +7,6 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Wdtv
|
||||
{
|
||||
public class WdtvSettingsValidator : AbstractValidator<WdtvMetadataSettings>
|
||||
{
|
||||
public WdtvSettingsValidator()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class WdtvMetadataSettings : IProviderConfig
|
||||
|
@ -8,9 +8,6 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc
|
||||
{
|
||||
public class XbmcSettingsValidator : AbstractValidator<XbmcMetadataSettings>
|
||||
{
|
||||
public XbmcSettingsValidator()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class XbmcMetadataSettings : IProviderConfig
|
||||
|
@ -12,10 +12,6 @@ public class CouchPotatoParser : IParseImportListResponse
|
||||
{
|
||||
private ImportListResponse _importListResponse;
|
||||
|
||||
public CouchPotatoParser()
|
||||
{
|
||||
}
|
||||
|
||||
public IList<ImportListMovie> ParseResponse(ImportListResponse importListResponse)
|
||||
{
|
||||
_importListResponse = importListResponse;
|
||||
|
@ -14,10 +14,6 @@ public class PlexParser : IParseImportListResponse
|
||||
{
|
||||
private ImportListResponse _importResponse;
|
||||
|
||||
public PlexParser()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual IList<ImportListMovie> ParseResponse(ImportListResponse importResponse)
|
||||
{
|
||||
List<PlexWatchlistItem> items;
|
||||
|
@ -9,10 +9,6 @@ namespace NzbDrone.Core.ImportLists.RadarrList
|
||||
{
|
||||
public class RadarrListParser : IParseImportListResponse
|
||||
{
|
||||
public RadarrListParser()
|
||||
{
|
||||
}
|
||||
|
||||
public IList<ImportListMovie> ParseResponse(ImportListResponse importListResponse)
|
||||
{
|
||||
var importResponse = importListResponse;
|
||||
|
@ -1,4 +1,4 @@
|
||||
using FluentValidation;
|
||||
using FluentValidation;
|
||||
using NzbDrone.Core.Annotations;
|
||||
using NzbDrone.Core.ThingiProvider;
|
||||
using NzbDrone.Core.Validation;
|
||||
@ -19,10 +19,6 @@ public class IMDbListSettings : IProviderConfig
|
||||
{
|
||||
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; }
|
||||
|
||||
|
@ -11,10 +11,6 @@ public class StevenLuParser : IParseImportListResponse
|
||||
{
|
||||
private ImportListResponse _importResponse;
|
||||
|
||||
public StevenLuParser()
|
||||
{
|
||||
}
|
||||
|
||||
public IList<ImportListMovie> ParseResponse(ImportListResponse importResponse)
|
||||
{
|
||||
_importResponse = importResponse;
|
||||
|
@ -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 @@ public class TMDbCompanyRequestGenerator : IImportListRequestGenerator
|
||||
public Logger Logger { get; set; }
|
||||
public int MaxPages { get; set; }
|
||||
|
||||
public TMDbCompanyRequestGenerator()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual ImportListPageableRequestChain GetMovies()
|
||||
{
|
||||
var pageableRequests = new ImportListPageableRequestChain();
|
||||
|
@ -13,10 +13,6 @@ public class TMDbKeywordRequestGenerator : IImportListRequestGenerator
|
||||
public Logger Logger { get; set; }
|
||||
public int MaxPages { get; set; }
|
||||
|
||||
public TMDbKeywordRequestGenerator()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual ImportListPageableRequestChain GetMovies()
|
||||
{
|
||||
var pageableRequests = new ImportListPageableRequestChain();
|
||||
|
@ -13,10 +13,6 @@ public class TMDbListRequestGenerator : IImportListRequestGenerator
|
||||
public Logger Logger { get; set; }
|
||||
public int MaxPages { get; set; }
|
||||
|
||||
public TMDbListRequestGenerator()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual ImportListPageableRequestChain GetMovies()
|
||||
{
|
||||
var pageableRequests = new ImportListPageableRequestChain();
|
||||
|
@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using NLog;
|
||||
using NzbDrone.Common.Http;
|
||||
|
||||
@ -11,10 +11,6 @@ public class TMDbPersonRequestGenerator : IImportListRequestGenerator
|
||||
public IHttpRequestBuilderFactory RequestBuilder { get; set; }
|
||||
public Logger Logger { get; set; }
|
||||
|
||||
public TMDbPersonRequestGenerator()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual ImportListPageableRequestChain GetMovies()
|
||||
{
|
||||
var pageableRequests = new ImportListPageableRequestChain();
|
||||
|
@ -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()
|
||||
{
|
||||
|
@ -15,10 +15,6 @@ public class TMDbUserRequestGenerator : IImportListRequestGenerator
|
||||
|
||||
public int MaxPages { get; set; }
|
||||
|
||||
public TMDbUserRequestGenerator()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual ImportListPageableRequestChain GetMovies()
|
||||
{
|
||||
var pageableRequests = new ImportListPageableRequestChain();
|
||||
|
@ -17,10 +17,6 @@ public class TraktListSettings : TraktSettingsBase<TraktListSettings>
|
||||
{
|
||||
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; }
|
||||
|
||||
|
@ -12,10 +12,6 @@ public class TraktParser : IParseImportListResponse
|
||||
{
|
||||
private ImportListResponse _importResponse;
|
||||
|
||||
public TraktParser()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual IList<ImportListMovie> ParseResponse(ImportListResponse importResponse)
|
||||
{
|
||||
_importResponse = importResponse;
|
||||
|
@ -10,10 +10,6 @@ public class TorrentPotatoRequestGenerator : IIndexerRequestGenerator
|
||||
{
|
||||
public TorrentPotatoSettings Settings { get; set; }
|
||||
|
||||
public TorrentPotatoRequestGenerator()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual IndexerPageableRequestChain GetRecentRequests()
|
||||
{
|
||||
var pageableRequests = new IndexerPageableRequestChain();
|
||||
|
@ -9,9 +9,5 @@ public class RenameMovieCommand : Command
|
||||
|
||||
public override bool SendUpdatesToClient => true;
|
||||
public override bool RequiresDiskAccess => true;
|
||||
|
||||
public RenameMovieCommand()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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; }
|
||||
|
@ -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
|
||||
|
@ -5,10 +5,6 @@ namespace Radarr.Http
|
||||
{
|
||||
public class ApiInfoController : Controller
|
||||
{
|
||||
public ApiInfoController()
|
||||
{
|
||||
}
|
||||
|
||||
[HttpGet("/api")]
|
||||
[Produces("application/json")]
|
||||
public ApiInfoResource GetApiInfo()
|
||||
|
Loading…
Reference in New Issue
Block a user