The Free Software Media System - Server Backend & API
remove unused strings
Luke Pulverenti792da5967eec
diff --git a/MediaBrowser.Tests/ConsistencyTests/StringUsageReporter.cs b/MediaBrowser.Tests/ConsistencyTests/StringUsageReporter.csindex bea709c5c8..5234f7857e 100644--- a/MediaBrowser.Tests/ConsistencyTests/StringUsageReporter.cs+++ b/MediaBrowser.Tests/ConsistencyTests/StringUsageReporter.cs@@ -71,7 +71,7 @@ namespace MediaBrowser.Tests.ConsistencyTests/// <summary>/// List of file extension to search./// </summary>- public static string[] TargetExtensions = new[] { "js", "html" };+ public static string[] TargetExtensions = new[] { ".js", ".html" };/// <summary>/// List of paths to exclude from search.@@ -96,11 +96,11 @@ namespace MediaBrowser.Tests.ConsistencyTests}}- [TestMethod]- public void ReportStringUsage()- {- this.CheckDashboardStrings(false);- }+ //[TestMethod]+ //public void ReportStringUsage()+ //{+ // this.CheckDashboardStrings(false);+ //}[TestMethod]public void ReportUnusedStrings()@@ -135,7 +135,7 @@ namespace MediaBrowser.Tests.ConsistencyTestsvar allFiles = rootFolderInfo.GetFiles("*", SearchOption.AllDirectories);- var filteredFiles1 = allFiles.Where(f => TargetExtensions.Any(e => f.Name.EndsWith(e)));+ var filteredFiles1 = allFiles.Where(f => TargetExtensions.Any(e => string.Equals(e, f.Extension, StringComparison.OrdinalIgnoreCase)));var filteredFiles2 = filteredFiles1.Where(f => !ExcludePaths.Any(p => f.FullName.Contains(p)));var selectedFiles = filteredFiles2.OrderBy(f => f.FullName).ToList();diff --git a/MediaBrowser.sln b/MediaBrowser.slnindex cf4a5428c2..c6068f5364 100644--- a/MediaBrowser.sln+++ b/MediaBrowser.sln@@ -65,6 +65,9 @@ EndProjectProject("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Emby.Drawing", "Emby.Drawing\Emby.Drawing.csproj", "{08FFF49B-F175-4807-A2B5-73B0EBD9F716}"EndProjectGlobal+ GlobalSection(Performance) = preSolution+ HasPerformanceSessions = true+ EndGlobalSectionGlobalSection(SolutionConfigurationPlatforms) = preSolutionDebug|Any CPU = Debug|Any CPUDebug|Mixed Platforms = Debug|Mixed Platforms