Skip to content

Commit

Permalink
Remove empty constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed May 19, 2023
1 parent 156def3 commit fd76d67
Show file tree
Hide file tree
Showing 25 changed files with 6 additions and 102 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Threading;
using Moq;
using NUnit.Framework;
Expand Down Expand Up @@ -210,10 +210,6 @@ public CommandA(int id = 0)

public class CommandB : Command
{
public CommandB()
{
}

public override string CompletionMessage => null;
}
}
3 changes: 0 additions & 3 deletions src/NzbDrone.Core/Download/DownloadsProcessedEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@ namespace NzbDrone.Core.Download
{
public class DownloadsProcessedEvent : IEvent
{
public DownloadsProcessedEvent()
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.MediaBrowser
{
public class MediaBrowserSettingsValidator : AbstractValidator<MediaBrowserMetadataSettings>
{
public MediaBrowserSettingsValidator()
{
}
}

public class MediaBrowserMetadataSettings : IProviderConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Roksbox
{
public class RoksboxSettingsValidator : AbstractValidator<RoksboxMetadataSettings>
{
public RoksboxSettingsValidator()
{
}
}

public class RoksboxMetadataSettings : IProviderConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Wdtv
{
public class WdtvSettingsValidator : AbstractValidator<WdtvMetadataSettings>
{
public WdtvSettingsValidator()
{
}
}

public class WdtvMetadataSettings : IProviderConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc
{
public class XbmcSettingsValidator : AbstractValidator<XbmcMetadataSettings>
{
public XbmcSettingsValidator()
{
}
}

public class XbmcMetadataSettings : IProviderConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ public class CouchPotatoParser : IParseImportListResponse
{
private ImportListResponse _importListResponse;

public CouchPotatoParser()
{
}

public IList<ImportListMovie> ParseResponse(ImportListResponse importListResponse)
{
_importListResponse = importListResponse;
Expand Down
4 changes: 0 additions & 4 deletions src/NzbDrone.Core/ImportLists/Plex/PlexParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ public class PlexParser : IParseImportListResponse
{
private ImportListResponse _importResponse;

public PlexParser()
{
}

public virtual IList<ImportListMovie> ParseResponse(ImportListResponse importResponse)
{
List<PlexWatchlistItem> items;
Expand Down
4 changes: 0 additions & 4 deletions src/NzbDrone.Core/ImportLists/RadarrList/RadarrListParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ namespace NzbDrone.Core.ImportLists.RadarrList
{
public class RadarrListParser : IParseImportListResponse
{
public RadarrListParser()
{
}

public IList<ImportListMovie> ParseResponse(ImportListResponse importListResponse)
{
var importResponse = importListResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FluentValidation;
using FluentValidation;
using NzbDrone.Core.Annotations;
using NzbDrone.Core.ThingiProvider;
using NzbDrone.Core.Validation;
Expand All @@ -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; }

Expand Down
4 changes: 0 additions & 4 deletions src/NzbDrone.Core/ImportLists/StevenLu/StevenLuParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ public class StevenLuParser : IParseImportListResponse
{
private ImportListResponse _importResponse;

public StevenLuParser()
{
}

public IList<ImportListMovie> ParseResponse(ImportListResponse importResponse)
{
_importResponse = importResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using Newtonsoft.Json;
using NLog;
using NzbDrone.Common.Http;
Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using NLog;
using NzbDrone.Common.Http;

Expand All @@ -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();
Expand Down
8 changes: 1 addition & 7 deletions src/NzbDrone.Core/ImportLists/TMDb/TMDbSettings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FluentValidation;
using FluentValidation;
using NzbDrone.Core.ThingiProvider;
using NzbDrone.Core.Validation;

Expand All @@ -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()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ public class TMDbUserRequestGenerator : IImportListRequestGenerator

public int MaxPages { get; set; }

public TMDbUserRequestGenerator()
{
}

public virtual ImportListPageableRequestChain GetMovies()
{
var pageableRequests = new ImportListPageableRequestChain();
Expand Down
4 changes: 0 additions & 4 deletions src/NzbDrone.Core/ImportLists/Trakt/List/TraktListSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down
4 changes: 0 additions & 4 deletions src/NzbDrone.Core/ImportLists/Trakt/TraktParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ public class TraktParser : IParseImportListResponse
{
private ImportListResponse _importResponse;

public TraktParser()
{
}

public virtual IList<ImportListMovie> ParseResponse(ImportListResponse importResponse)
{
_importResponse = importResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ public class TorrentPotatoRequestGenerator : IIndexerRequestGenerator
{
public TorrentPotatoSettings Settings { get; set; }

public TorrentPotatoRequestGenerator()
{
}

public virtual IndexerPageableRequestChain GetRecentRequests()
{
var pageableRequests = new IndexerPageableRequestChain();
Expand Down
4 changes: 0 additions & 4 deletions src/NzbDrone.Core/MediaFiles/Commands/RenameMovieCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,5 @@ public class RenameMovieCommand : Command

public override bool SendUpdatesToClient => true;
public override bool RequiresDiskAccess => true;

public RenameMovieCommand()
{
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FluentValidation;
using FluentValidation;
using NzbDrone.Core.Annotations;
using NzbDrone.Core.ThingiProvider;
using NzbDrone.Core.Validation;
Expand All @@ -7,9 +7,6 @@ namespace NzbDrone.Core.Notifications.Synology
{
public class SynologyIndexerSettingsValidator : AbstractValidator<SynologyIndexerSettings>
{
public SynologyIndexerSettingsValidator()
{
}
}

public class SynologyIndexerSettings : IProviderConfig
Expand Down
4 changes: 0 additions & 4 deletions src/Radarr.Api.V3/Credits/CreditResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
4 changes: 0 additions & 4 deletions src/Radarr.Api.V3/Movies/AlternativeTitleResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions src/Radarr.Http/ApiInfoController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ namespace Radarr.Http
{
public class ApiInfoController : Controller
{
public ApiInfoController()
{
}

[HttpGet("/api")]
[Produces("application/json")]
public ApiInfoResource GetApiInfo()
Expand Down

0 comments on commit fd76d67

Please sign in to comment.