Skip to content

Commit

Permalink
Removed dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinHo64 committed Jul 11, 2024
1 parent 2ec6073 commit ee85b3d
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions Presentation/View/Layout/Side.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,6 @@ namespace Presentation.View.Layout;

public enum Side
{
Left, Right
}

public static class SideEnumExtension
{
public static string AsString(this Side side) => side.ToString();

public static string AsCssClass(this Side side)
{
return side switch
{
Side.Left => "left-0",
Side.Right => "right-0",
_ => throw new ArgumentOutOfRangeException(nameof(side), side, null)
};
}
public static Side GetOpposite(this Side side) =>
side switch
{
Side.Left => Side.Right,
Side.Right => Side.Left,
_ => throw new ArgumentOutOfRangeException(nameof(side), side, null)
};

public static string OppositeAsString(this Side side) => side.GetOpposite().AsString();

public static string OppositeAsCssClass(this Side side) => side.GetOpposite().AsCssClass();
Left,
Right
}

0 comments on commit ee85b3d

Please sign in to comment.