Skip to content

Commit

Permalink
Fixing CA error CA1823: Microsoft.Performance : It appears that field…
Browse files Browse the repository at this point in the history
… 'ApiController._config' is never used or is only ever assigned to.
  • Loading branch information
xavierdecoster committed Apr 15, 2016
1 parent 1a515fd commit f3b0f4a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/NuGetGallery/Controllers/ApiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
using NuGet.Frameworks;
using NuGet.Packaging;
using NuGet.Versioning;
using NuGetGallery.Configuration;
using NuGetGallery.Filters;
using NuGetGallery.Packaging;

Expand All @@ -24,8 +23,6 @@ namespace NuGetGallery
public partial class ApiController
: AppController
{
private readonly IAppConfiguration _config;

public IEntitiesContext EntitiesContext { get; set; }
public INuGetExeDownloaderService NugetExeDownloaderService { get; set; }
public IPackageFileService PackageFileService { get; set; }
Expand Down Expand Up @@ -54,8 +51,7 @@ public ApiController(
ISearchService searchService,
IAutomaticallyCuratePackageCommand autoCuratePackage,
IStatusService statusService,
IMessageService messageService,
IAppConfiguration config)
IMessageService messageService)
{
EntitiesContext = entitiesContext;
PackageService = packageService;
Expand All @@ -69,7 +65,6 @@ public ApiController(
AutoCuratePackage = autoCuratePackage;
StatusService = statusService;
MessageService = messageService;
_config = config;
}

public ApiController(
Expand All @@ -84,9 +79,8 @@ public ApiController(
IAutomaticallyCuratePackageCommand autoCuratePackage,
IStatusService statusService,
IStatisticsService statisticsService,
IMessageService messageService,
IAppConfiguration config)
: this(entitiesContext, packageService, packageFileService, userService, nugetExeDownloaderService, contentService, indexingService, searchService, autoCuratePackage, statusService, messageService, config)
IMessageService messageService)
: this(entitiesContext, packageService, packageFileService, userService, nugetExeDownloaderService, contentService, indexingService, searchService, autoCuratePackage, statusService, messageService)
{
StatisticsService = statisticsService;
}
Expand Down

0 comments on commit f3b0f4a

Please sign in to comment.