From 2d61349a8decbd44d62b7fcad1d0d82155df0fed Mon Sep 17 00:00:00 2001 From: Alireza Habibi Date: Mon, 14 Feb 2022 19:15:28 +0330 Subject: [PATCH] Remove IBoundSwitchStatement (#59516) --- .../Portable/BoundTree/BoundSwitchStatement.cs | 5 +---- .../Portable/BoundTree/IBoundSwitchStatement.cs | 14 -------------- 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 src/Compilers/CSharp/Portable/BoundTree/IBoundSwitchStatement.cs diff --git a/src/Compilers/CSharp/Portable/BoundTree/BoundSwitchStatement.cs b/src/Compilers/CSharp/Portable/BoundTree/BoundSwitchStatement.cs index 0192afe47b90b..5f009c96a3dbe 100644 --- a/src/Compilers/CSharp/Portable/BoundTree/BoundSwitchStatement.cs +++ b/src/Compilers/CSharp/Portable/BoundTree/BoundSwitchStatement.cs @@ -7,11 +7,8 @@ namespace Microsoft.CodeAnalysis.CSharp { - internal partial class BoundSwitchStatement : IBoundSwitchStatement + internal partial class BoundSwitchStatement { - BoundNode IBoundSwitchStatement.Value => this.Expression; - ImmutableArray IBoundSwitchStatement.Cases => StaticCast.From(this.SwitchSections); - public BoundDecisionDag GetDecisionDagForLowering(CSharpCompilation compilation) { BoundDecisionDag decisionDag = this.ReachabilityDecisionDag; diff --git a/src/Compilers/CSharp/Portable/BoundTree/IBoundSwitchStatement.cs b/src/Compilers/CSharp/Portable/BoundTree/IBoundSwitchStatement.cs deleted file mode 100644 index 24aab819949df..0000000000000 --- a/src/Compilers/CSharp/Portable/BoundTree/IBoundSwitchStatement.cs +++ /dev/null @@ -1,14 +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 file in the project root for more information. - -using System.Collections.Immutable; - -namespace Microsoft.CodeAnalysis.CSharp -{ - internal interface IBoundSwitchStatement - { - BoundNode Value { get; } - ImmutableArray Cases { get; } - } -}