From afbf3fdf6a3c8fee5911e69269f2fc7e8638e871 Mon Sep 17 00:00:00 2001 From: Martin Costello Date: Mon, 6 Jul 2020 16:51:25 +0100 Subject: [PATCH] Remove unused code (#23691) Remove an unused private method and an unused local variable. --- src/Features/JsonPatch/src/JsonPatchDocumentOfT.cs | 9 --------- .../Hosting/src/StaticWebAssets/StaticWebAssetsLoader.cs | 1 - 2 files changed, 10 deletions(-) diff --git a/src/Features/JsonPatch/src/JsonPatchDocumentOfT.cs b/src/Features/JsonPatch/src/JsonPatchDocumentOfT.cs index 1b5e6ce0fc..eb3276ffa1 100644 --- a/src/Features/JsonPatch/src/JsonPatchDocumentOfT.cs +++ b/src/Features/JsonPatch/src/JsonPatchDocumentOfT.cs @@ -859,15 +859,6 @@ namespace Microsoft.AspNetCore.JsonPatch return null; } - private static bool ContinueWithSubPath(ExpressionType expressionType) - { - return (expressionType == ExpressionType.ArrayIndex - || expressionType == ExpressionType.Call - || expressionType == ExpressionType.Convert - || expressionType == ExpressionType.MemberAccess); - - } - // Evaluates the value of the key or index which may be an int or a string, // or some other expression type. // The expression is converted to a delegate and the result of executing the delegate is returned as a string. diff --git a/src/Hosting/Hosting/src/StaticWebAssets/StaticWebAssetsLoader.cs b/src/Hosting/Hosting/src/StaticWebAssets/StaticWebAssetsLoader.cs index 99409c5689..60d0f8181d 100644 --- a/src/Hosting/Hosting/src/StaticWebAssets/StaticWebAssetsLoader.cs +++ b/src/Hosting/Hosting/src/StaticWebAssets/StaticWebAssetsLoader.cs @@ -34,7 +34,6 @@ namespace Microsoft.AspNetCore.Hosting.StaticWebAssets internal static void UseStaticWebAssetsCore(IWebHostEnvironment environment, Stream manifest) { - var staticWebAssetsFileProvider = new List(); var webRootFileProvider = environment.WebRootFileProvider; var additionalFiles = StaticWebAssetsReader.Parse(manifest)