From 8a8171abd5beac8c253e7f3da0453c4241f8d363 Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Sun, 31 Mar 2024 14:38:26 +0200 Subject: [PATCH] Remove redundant class bodies. --- Remora.Commands/Attributes/GreedyAttribute.cs | 4 +--- Remora.Commands/Conditions/Attributes/ConditionAttribute.cs | 4 +--- Remora.Commands/Conditions/ICondition.cs | 4 +--- .../Services/CommandServiceTests.Preparsed.cs | 4 +--- .../Services/CommandServiceTests.PreparsedWithPath.cs | 4 +--- .../Remora.Commands.Tests/Services/CommandServiceTests.Raw.cs | 4 +--- Tests/Remora.Commands.Tests/Services/CommandServiceTests.cs | 4 +--- Tests/Remora.Commands.Tests/Trees/CommandTreeBuilderTests.cs | 4 +--- .../Remora.Commands.Tests/Trees/CommandTreeTests.Preparsed.cs | 4 +--- Tests/Remora.Commands.Tests/Trees/CommandTreeTests.Raw.cs | 4 +--- Tests/Remora.Commands.Tests/Trees/CommandTreeTests.cs | 4 +--- 11 files changed, 11 insertions(+), 33 deletions(-) diff --git a/Remora.Commands/Attributes/GreedyAttribute.cs b/Remora.Commands/Attributes/GreedyAttribute.cs index daf1927..cc4b4f5 100644 --- a/Remora.Commands/Attributes/GreedyAttribute.cs +++ b/Remora.Commands/Attributes/GreedyAttribute.cs @@ -31,6 +31,4 @@ namespace Remora.Commands.Attributes; /// [PublicAPI] [AttributeUsage(AttributeTargets.Parameter)] -public class GreedyAttribute : Attribute -{ -} +public class GreedyAttribute : Attribute; diff --git a/Remora.Commands/Conditions/Attributes/ConditionAttribute.cs b/Remora.Commands/Conditions/Attributes/ConditionAttribute.cs index 62ae2f7..789d924 100644 --- a/Remora.Commands/Conditions/Attributes/ConditionAttribute.cs +++ b/Remora.Commands/Conditions/Attributes/ConditionAttribute.cs @@ -29,6 +29,4 @@ namespace Remora.Commands.Conditions; /// Acts as a base class for conditional data attributes. /// [PublicAPI] -public abstract class ConditionAttribute : Attribute -{ -} +public abstract class ConditionAttribute : Attribute; diff --git a/Remora.Commands/Conditions/ICondition.cs b/Remora.Commands/Conditions/ICondition.cs index 43dcf67..cec5c09 100644 --- a/Remora.Commands/Conditions/ICondition.cs +++ b/Remora.Commands/Conditions/ICondition.cs @@ -74,6 +74,4 @@ public interface ICondition : ICondition /// Marker interface for conditions. /// [PublicAPI] -public interface ICondition -{ -} +public interface ICondition; diff --git a/Tests/Remora.Commands.Tests/Services/CommandServiceTests.Preparsed.cs b/Tests/Remora.Commands.Tests/Services/CommandServiceTests.Preparsed.cs index a5df00e..29981be 100644 --- a/Tests/Remora.Commands.Tests/Services/CommandServiceTests.Preparsed.cs +++ b/Tests/Remora.Commands.Tests/Services/CommandServiceTests.Preparsed.cs @@ -27,7 +27,5 @@ public static partial class CommandServiceTests /// /// Tests functionality of preparsed operations. /// - public static partial class Preparsed - { - } + public static partial class Preparsed; } diff --git a/Tests/Remora.Commands.Tests/Services/CommandServiceTests.PreparsedWithPath.cs b/Tests/Remora.Commands.Tests/Services/CommandServiceTests.PreparsedWithPath.cs index 0829249..217b6f1 100644 --- a/Tests/Remora.Commands.Tests/Services/CommandServiceTests.PreparsedWithPath.cs +++ b/Tests/Remora.Commands.Tests/Services/CommandServiceTests.PreparsedWithPath.cs @@ -27,7 +27,5 @@ public static partial class CommandServiceTests /// /// Tests functionality of preparsed operations, where the command path is also preparsed. /// - public static partial class PreparsedWithPath - { - } + public static partial class PreparsedWithPath; } diff --git a/Tests/Remora.Commands.Tests/Services/CommandServiceTests.Raw.cs b/Tests/Remora.Commands.Tests/Services/CommandServiceTests.Raw.cs index 8171256..bf518de 100644 --- a/Tests/Remora.Commands.Tests/Services/CommandServiceTests.Raw.cs +++ b/Tests/Remora.Commands.Tests/Services/CommandServiceTests.Raw.cs @@ -27,7 +27,5 @@ public static partial class CommandServiceTests /// /// Tests functionality of raw parsing-based operations. /// - public static partial class Raw - { - } + public static partial class Raw; } diff --git a/Tests/Remora.Commands.Tests/Services/CommandServiceTests.cs b/Tests/Remora.Commands.Tests/Services/CommandServiceTests.cs index 613b352..a7a6c98 100644 --- a/Tests/Remora.Commands.Tests/Services/CommandServiceTests.cs +++ b/Tests/Remora.Commands.Tests/Services/CommandServiceTests.cs @@ -27,6 +27,4 @@ namespace Remora.Commands.Tests.Services; /// /// Tests the class. /// -public static partial class CommandServiceTests -{ -} +public static partial class CommandServiceTests; diff --git a/Tests/Remora.Commands.Tests/Trees/CommandTreeBuilderTests.cs b/Tests/Remora.Commands.Tests/Trees/CommandTreeBuilderTests.cs index ca60867..0653bd3 100644 --- a/Tests/Remora.Commands.Tests/Trees/CommandTreeBuilderTests.cs +++ b/Tests/Remora.Commands.Tests/Trees/CommandTreeBuilderTests.cs @@ -27,6 +27,4 @@ namespace Remora.Commands.Tests.Trees; /// /// Tests the class. /// -public static partial class CommandTreeBuilderTests -{ -} +public static partial class CommandTreeBuilderTests; diff --git a/Tests/Remora.Commands.Tests/Trees/CommandTreeTests.Preparsed.cs b/Tests/Remora.Commands.Tests/Trees/CommandTreeTests.Preparsed.cs index 4a75938..ab6993b 100644 --- a/Tests/Remora.Commands.Tests/Trees/CommandTreeTests.Preparsed.cs +++ b/Tests/Remora.Commands.Tests/Trees/CommandTreeTests.Preparsed.cs @@ -27,7 +27,5 @@ public static partial class CommandTreeTests /// /// Tests functionality of preparsed operations. /// - public static partial class Preparsed - { - } + public static partial class Preparsed; } diff --git a/Tests/Remora.Commands.Tests/Trees/CommandTreeTests.Raw.cs b/Tests/Remora.Commands.Tests/Trees/CommandTreeTests.Raw.cs index 3abd8b8..605240e 100644 --- a/Tests/Remora.Commands.Tests/Trees/CommandTreeTests.Raw.cs +++ b/Tests/Remora.Commands.Tests/Trees/CommandTreeTests.Raw.cs @@ -27,7 +27,5 @@ public static partial class CommandTreeTests /// /// Tests functionality of raw parsing-based operations. /// - public static partial class Raw - { - } + public static partial class Raw; } diff --git a/Tests/Remora.Commands.Tests/Trees/CommandTreeTests.cs b/Tests/Remora.Commands.Tests/Trees/CommandTreeTests.cs index 0dd06e4..0f801d4 100644 --- a/Tests/Remora.Commands.Tests/Trees/CommandTreeTests.cs +++ b/Tests/Remora.Commands.Tests/Trees/CommandTreeTests.cs @@ -27,6 +27,4 @@ namespace Remora.Commands.Tests.Trees; /// /// Tests the class. /// -public static partial class CommandTreeTests -{ -} +public static partial class CommandTreeTests;