U4-11546 [v7] Clean up to remove compiler warnings (#2823)

This commit is contained in:
Mundairson
2018-07-31 09:41:15 +01:00
committed by Sebastiaan Janssen
parent 3a0c872587
commit 9cd2db5018
26 changed files with 28 additions and 63 deletions

View File

@@ -8,8 +8,6 @@ namespace Umbraco.Web.HealthCheck
[DataContract(Name = "healtCheckAction", Namespace = "")]
public class HealthCheckAction
{
private readonly ILocalizedTextService _textService;
/// <summary>
/// Empty ctor used for serialization
/// </summary>
@@ -78,4 +76,4 @@ namespace Umbraco.Web.HealthCheck
[DataMember(Name = "providedValue")]
public string ProvidedValue { get; set; }
}
}
}

View File

@@ -163,7 +163,7 @@ namespace Umbraco.Web.Install
if (accessRules == null)
return false;
}
catch (Exception e)
catch (Exception)
{
//This is not 100% accurate btw because it could turn out that the current user doesn't
//have access to read the current permissions but does have write access.
@@ -198,4 +198,4 @@ namespace Umbraco.Web.Install
return true;
}
}
}
}

View File

@@ -64,7 +64,7 @@ namespace Umbraco.Web.Install.InstallSteps
throw new FormatException("Password must be at least " + CurrentProvider.MinRequiredPasswordLength + " characters long and contain at least " + CurrentProvider.MinRequiredNonAlphanumericCharacters + " symbols");
}
}
catch (Exception ex)
catch (Exception)
{
throw new FormatException("Password must be at least " + CurrentProvider.MinRequiredPasswordLength + " characters long and contain at least " + CurrentProvider.MinRequiredNonAlphanumericCharacters + " symbols");
}

View File

@@ -36,8 +36,6 @@ namespace Umbraco.Web.Trees
protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings)
{
var baseUrl = Constants.Applications.Developer + "/packages/";
var nodes = new TreeNodeCollection();
var createdPackages = CreatedPackage.GetAllCreatedPackages();

View File

@@ -47,8 +47,6 @@ namespace Umbraco.Web.Trees
protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings)
{
var baseUrl = Constants.Applications.Users + "/users/";
var nodes = new TreeNodeCollection();
return nodes;
}
@@ -84,4 +82,4 @@ namespace Umbraco.Web.Trees
return menu;
}
}
}
}

View File

@@ -503,7 +503,7 @@ namespace Umbraco.Web
httpContext.Response.Headers.Remove("X-AspNet-Version");
httpContext.Response.Headers.Remove("X-AspNetMvc-Version");
}
catch (PlatformNotSupportedException ex)
catch (PlatformNotSupportedException)
{
// can't remove headers this way on IIS6 or cassini.
}

View File

@@ -428,8 +428,6 @@ namespace umbraco
if (!e.Cancel)
{
XmlNode x;
//Hack: this is here purely for backwards compat if someone for some reason is using the
// ClearDocumentCache(int documentId) method and expecting it to remove the xml
if (removeDbXmlEntry)

View File

@@ -253,7 +253,6 @@ namespace umbraco.presentation
+ ex;
// Hide error if getting the user throws an error (e.g. corrupt / blank db)
User staticUser = null;
try
{
User.GetCurrent();
@@ -473,4 +472,4 @@ namespace umbraco.presentation
}
}
}