Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unncessary class bodies. #793

Merged
merged 1 commit into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;