Additional code cleanup

pull/18/head
Daniel Underwood 8 years ago
parent 322e9f3c51
commit 30b263d49d

@ -28,7 +28,6 @@ namespace NzbDrone.Core.IndexerSearch
public class NzbSearchService : ISearchForNzb public class NzbSearchService : ISearchForNzb
{ {
private readonly IIndexerFactory _indexerFactory; private readonly IIndexerFactory _indexerFactory;
// private readonly ISceneMappingService _sceneMapping;
[System.Obsolete("Used for sonarr, not lidarr")] [System.Obsolete("Used for sonarr, not lidarr")]
private readonly ISeriesService _seriesService; private readonly ISeriesService _seriesService;
[System.Obsolete("Used for sonarr, not lidarr")] [System.Obsolete("Used for sonarr, not lidarr")]
@ -40,7 +39,6 @@ namespace NzbDrone.Core.IndexerSearch
private readonly Logger _logger; private readonly Logger _logger;
public NzbSearchService(IIndexerFactory indexerFactory, public NzbSearchService(IIndexerFactory indexerFactory,
// ISceneMappingService sceneMapping,
ISeriesService seriesService, ISeriesService seriesService,
IEpisodeService episodeService, IEpisodeService episodeService,
IAlbumService albumService, IAlbumService albumService,
@ -292,10 +290,9 @@ namespace NzbDrone.Core.IndexerSearch
return spec; return spec;
} }
private TSpec Get<TSpec>(Artist artist, bool userInvokedSearch) where TSpec : SearchCriteriaBase, new() private static TSpec Get<TSpec>(Artist artist, bool userInvokedSearch) where TSpec : SearchCriteriaBase, new()
{ {
var spec = new TSpec(); var spec = new TSpec();
;
spec.Artist = artist; spec.Artist = artist;
spec.UserInvokedSearch = userInvokedSearch; spec.UserInvokedSearch = userInvokedSearch;

Loading…
Cancel
Save