From 5d89a634ef703419513a5fb507b05c6d565aedf8 Mon Sep 17 00:00:00 2001 From: Drew Noakes Date: Mon, 21 Mar 2022 10:56:48 +1100 Subject: [PATCH] Nest enum that is only used in one type --- .../Dependencies/CrossTarget/RuleSource.cs | 18 ------------------ .../Subscriptions/DependencyRulesSubscriber.cs | 9 +++++++++ 2 files changed, 9 insertions(+), 18 deletions(-) delete mode 100644 src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Tree/Dependencies/CrossTarget/RuleSource.cs diff --git a/src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Tree/Dependencies/CrossTarget/RuleSource.cs b/src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Tree/Dependencies/CrossTarget/RuleSource.cs deleted file mode 100644 index ffa2c7284a7..00000000000 --- a/src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Tree/Dependencies/CrossTarget/RuleSource.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE.md file in the project root for more information. - -namespace Microsoft.VisualStudio.ProjectSystem.Tree.Dependencies.CrossTarget -{ - internal enum RuleSource - { - /// - /// Rule data sourced by evaluation. - /// - Evaluation, - - /// - /// Rule data sourced by both evaluation and design-time build, - /// joined by project version to ensure consistency. - /// - Joint - } -} diff --git a/src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Tree/Dependencies/Subscriptions/DependencyRulesSubscriber.cs b/src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Tree/Dependencies/Subscriptions/DependencyRulesSubscriber.cs index d4e5484cb11..802de0d55a0 100644 --- a/src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Tree/Dependencies/Subscriptions/DependencyRulesSubscriber.cs +++ b/src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Tree/Dependencies/Subscriptions/DependencyRulesSubscriber.cs @@ -17,6 +17,15 @@ namespace Microsoft.VisualStudio.ProjectSystem.Tree.Dependencies.Subscriptions [AppliesTo(ProjectCapability.DependenciesTree)] internal sealed class DependencyRulesSubscriber : DependencyRulesSubscriberBase { + private enum RuleSource + { + /// Rule data sourced by evaluation. + Evaluation, + + /// Rule data sourced by both evaluation and design-time build, joined by project version to ensure consistency. + Joint + } + public const string DependencyRulesSubscriberContract = "DependencyRulesSubscriberContract"; private readonly IDependencyTreeTelemetryService _treeTelemetryService;