Skip to content

Commit

Permalink
style: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
aa89227 committed Mar 20, 2024
1 parent 2ce41eb commit 8fa48dc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Monopoly.Web/Pages/DevPage.razor.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Client.Options;
using Microsoft.AspNetCore.Components;
using Microsoft.Extensions.Options;
using Microsoft.AspNetCore.Components;
using Client.HttpClients;

namespace Client.Pages;
Expand All @@ -20,7 +18,6 @@ protected override async Task OnInitializedAsync()

private async void CreateGame()
{
CreateGameBodyPayload bodyPayload = new([.. _players]);
var host = _players.FirstOrDefault();
if (host is null)
{
Expand All @@ -43,8 +40,6 @@ private void EnterRoom(Room room, Player player)
NavigationManager.NavigateTo($"games/{room.Id}?token={player.Token}");
}

private record CreateGameBodyPayload(Player[] Players);

private record Player(string Id, string Token);

record Room(string Id, IEnumerable<Player> Players);
Expand Down

0 comments on commit 8fa48dc

Please sign in to comment.