From 673412c44656bdc95424056b80ed654093eaa455 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 9 Jun 2019 18:00:42 -0400 Subject: [PATCH] Fixed: Remove Unused Variables to Clear Compiler Warnings --- src/Lidarr.Http/Frontend/Mappers/IndexHtmlMapper.cs | 2 -- src/Lidarr.Http/Frontend/Mappers/LoginHtmlMapper.cs | 5 ----- src/NzbDrone.Core/Notifications/Plex/PlexTv/PlexTvProxy.cs | 2 +- .../Notifications/Plex/Server/PlexServerProxy.cs | 2 +- 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/Lidarr.Http/Frontend/Mappers/IndexHtmlMapper.cs b/src/Lidarr.Http/Frontend/Mappers/IndexHtmlMapper.cs index 62b041acc..938553a18 100644 --- a/src/Lidarr.Http/Frontend/Mappers/IndexHtmlMapper.cs +++ b/src/Lidarr.Http/Frontend/Mappers/IndexHtmlMapper.cs @@ -11,8 +11,6 @@ namespace Lidarr.Http.Frontend.Mappers { private readonly IConfigFileProvider _configFileProvider; - private static string API_KEY; - public IndexHtmlMapper(IAppFolderInfo appFolderInfo, IDiskProvider diskProvider, IConfigFileProvider configFileProvider, diff --git a/src/Lidarr.Http/Frontend/Mappers/LoginHtmlMapper.cs b/src/Lidarr.Http/Frontend/Mappers/LoginHtmlMapper.cs index a2290855c..da80817ee 100644 --- a/src/Lidarr.Http/Frontend/Mappers/LoginHtmlMapper.cs +++ b/src/Lidarr.Http/Frontend/Mappers/LoginHtmlMapper.cs @@ -10,11 +10,6 @@ namespace Lidarr.Http.Frontend.Mappers { public class LoginHtmlMapper : HtmlMapperBase { - private readonly IDiskProvider _diskProvider; - private readonly string _indexPath; - - private string _generatedContent; - public LoginHtmlMapper(IAppFolderInfo appFolderInfo, IDiskProvider diskProvider, Func cacheBreakProviderFactory, diff --git a/src/NzbDrone.Core/Notifications/Plex/PlexTv/PlexTvProxy.cs b/src/NzbDrone.Core/Notifications/Plex/PlexTv/PlexTvProxy.cs index f9913613e..cac6a529a 100644 --- a/src/NzbDrone.Core/Notifications/Plex/PlexTv/PlexTvProxy.cs +++ b/src/NzbDrone.Core/Notifications/Plex/PlexTv/PlexTvProxy.cs @@ -67,7 +67,7 @@ namespace NzbDrone.Core.Notifications.Plex.PlexTv { throw new NzbDroneClientException(ex.Response.StatusCode, "Unable to connect to plex.tv"); } - catch (WebException ex) + catch (WebException) { throw new NzbDroneClientException(HttpStatusCode.BadRequest, "Unable to connect to plex.tv"); } diff --git a/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerProxy.cs b/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerProxy.cs index b82ba57a6..49cdae249 100644 --- a/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerProxy.cs +++ b/src/NzbDrone.Core/Notifications/Plex/Server/PlexServerProxy.cs @@ -189,7 +189,7 @@ namespace NzbDrone.Core.Notifications.Plex.Server } throw new PlexException("Unable to connect to Plex Media Server"); } - catch (WebException ex) + catch (WebException) { throw new PlexException("Unable to connect to Plex Media Server"); }