Removed unused usings..
This commit is contained in:
Родитель
c4e8157503
Коммит
afca2bcb00
|
@ -22,7 +22,6 @@ using Octokit;
|
|||
using System.Fabric.Description;
|
||||
using System.Runtime.InteropServices;
|
||||
using static FabricHealer.Repair.RepairTaskManager;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace FabricHealer
|
||||
{
|
||||
|
|
|
@ -8,7 +8,6 @@ using System.Collections.Generic;
|
|||
using System.Fabric;
|
||||
using System.Fabric.Query;
|
||||
using System.Fabric.Repair;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
using FabricHealer.Utilities.Telemetry;
|
||||
using FabricHealer.Utilities;
|
||||
using Guan.Logic;
|
||||
using System;
|
||||
using System.Fabric.Repair;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
// ------------------------------------------------------------
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Guan.Logic;
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
|
||||
// ------------------------------------------------------------
|
||||
|
||||
using FabricHealer.TelemetryLib;
|
||||
using FabricHealer.Utilities;
|
||||
using FabricHealer.Utilities.Telemetry;
|
||||
using Guan.Logic;
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
|
||||
// ------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Fabric.Repair;
|
||||
using Guan.Logic;
|
||||
using FabricHealer.Utilities;
|
||||
|
|
|
@ -12,10 +12,8 @@ using System.IO;
|
|||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using FabricHealer.TelemetryLib;
|
||||
using FabricHealer.Utilities;
|
||||
using FabricHealer.Utilities.Telemetry;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace FabricHealer.Repair
|
||||
{
|
||||
|
@ -527,13 +525,14 @@ namespace FabricHealer.Repair
|
|||
predicate = predicate.Remove(predicate.Length - 2);
|
||||
}
|
||||
|
||||
// Get all rules that contain the supplied predicate and "LogRule".
|
||||
// Get all rules that contain the supplied predicate.
|
||||
List<string> flattenedLines = FabricHealerManager.ParseRulesFile(lines);
|
||||
var rulesWithPredicate =
|
||||
flattenedLines.Where(line => !string.IsNullOrWhiteSpace(line) &&
|
||||
!line.StartsWith("##") &&
|
||||
line.Replace("'", "").Replace("\"", "").Replace(" ", "").Contains(predicate, StringComparison.OrdinalIgnoreCase)).ToList();
|
||||
|
||||
// LogRule specified?
|
||||
if (rulesWithPredicate.Count(
|
||||
lr => lr.Contains(RepairConstants.LogRule, StringComparison.OrdinalIgnoreCase)) == rulesWithPredicate.Count)
|
||||
{
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
// ------------------------------------------------------------
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.IO;
|
||||
|
||||
namespace FabricHealer.Utilities
|
||||
|
|
Загрузка…
Ссылка в новой задаче