Skip to content

Commit

Permalink
Merge pull request #793 from polyadic/remove-empty-class-bodies
Browse files Browse the repository at this point in the history
Remove unncessary class bodies.
  • Loading branch information
FreeApophis authored May 29, 2024
2 parents 03c6f37 + 5409d00 commit dac97a4
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ Unit Producer()

private static TResult Throw<TResult>() => throw new ExceptionStub();

private sealed class ExceptionStub : Exception
{
}
private sealed class ExceptionStub : Exception;

private sealed class ThrowOnRetryPolicy : IRetryPolicy
{
Expand Down
4 changes: 1 addition & 3 deletions Funcky.Async/IAsyncBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ namespace Funcky;
/// Represents a buffer of an underlying <see cref="IEnumerable{TItem}"/> resource and is <see cref="IDisposable"/> accordingly.
/// </summary>
/// <typeparam name="T">Element type.</typeparam>
public interface IAsyncBuffer<out T> : IAsyncEnumerable<T>, IAsyncDisposable
{
}
public interface IAsyncBuffer<out T> : IAsyncEnumerable<T>, IAsyncDisposable;
4 changes: 1 addition & 3 deletions Funcky.Test/FunctionalClass/RetryWithExceptionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ Unit Producer()

private static TResult Throw<TResult>() => throw new ExceptionStub();

private sealed class ExceptionStub : Exception
{
}
private sealed class ExceptionStub : Exception;

private sealed class ThrowOnRetryPolicy : IRetryPolicy
{
Expand Down
4 changes: 1 addition & 3 deletions Funcky.Test/Monads/OptionTest.Comparable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,5 @@ public void CompareToDoesNotThrowWhenNoneValueAndSomeValueWhereItemTypeIsNotComp
_ = optionTwo.CompareTo(optionOne);
}

private sealed class Person
{
}
private sealed class Person;
}
4 changes: 1 addition & 3 deletions Funcky.Test/TestUtils/IMyInterface.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
namespace Funcky.Test.TestUtils;

internal interface IMyInterface
{
}
internal interface IMyInterface;
4 changes: 1 addition & 3 deletions Funcky.Test/TestUtils/MyClass.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
namespace Funcky.Test.TestUtils;

internal sealed class MyClass : IMyInterface
{
}
internal sealed class MyClass : IMyInterface;
4 changes: 1 addition & 3 deletions Funcky/CodeAnalysis/UseWithArgumentNamesAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ namespace Funcky.CodeAnalysis;

/// <summary>Methods annotated with this attribute should be used with named arguments.</summary>
[AttributeUsage(AttributeTargets.Method)]
internal sealed class UseWithArgumentNamesAttribute : Attribute
{
}
internal sealed class UseWithArgumentNamesAttribute : Attribute;
4 changes: 1 addition & 3 deletions Funcky/IBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ namespace Funcky;
/// Represents a buffer of an underlying <see cref="IEnumerable{T}"/> resource and is <see cref="IDisposable"/> accordingly.
/// </summary>
/// <typeparam name="T">Element type.</typeparam>
public interface IBuffer<out T> : IEnumerable<T>, IDisposable
{
}
public interface IBuffer<out T> : IEnumerable<T>, IDisposable;
4 changes: 1 addition & 3 deletions Funcky/RequireClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ namespace Funcky;

[EditorBrowsable(Never)]
public sealed class RequireClass<T>
where T : class
{
}
where T : class;
4 changes: 1 addition & 3 deletions Funcky/RequireStruct.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ namespace Funcky;

[EditorBrowsable(Never)]
public sealed class RequireStruct<T>
where T : struct
{
}
where T : struct;

0 comments on commit dac97a4

Please sign in to comment.