Skip to content

Commit

Permalink
Remove SonarLintModeExtensions.ThrowIfNotConnected (#5252)
Browse files Browse the repository at this point in the history
Fixes #5050
  • Loading branch information
1 parent d2e2dc1 commit 0392307
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Core/Binding/SonarLintMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

using System;

namespace SonarLint.VisualStudio.Core.Binding
{
public enum SonarLintMode
Expand All @@ -31,14 +29,6 @@ public enum SonarLintMode

public static class SonarLintModeExtensions
{
public static void ThrowIfNotConnected(this SonarLintMode bindingMode)
{
if (!bindingMode.IsInAConnectedMode())
{
throw new ArgumentOutOfRangeException(nameof(bindingMode));
}
}

public static bool IsInAConnectedMode(this SonarLintMode bindingMode)
{
return (bindingMode == SonarLintMode.Connected || bindingMode == SonarLintMode.LegacyConnected);
Expand Down

0 comments on commit 0392307

Please sign in to comment.