Skip to content

Commit

Permalink
remove unused struct PathContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
alec1o committed Nov 18, 2023
1 parent 8f13988 commit c85fc67
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/HTTP/HttpServer.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
Expand Down Expand Up @@ -30,20 +29,6 @@ public HttpServer()
_wsMap = new List<(string path, Action<Request, WebSocketClient> callback)>();
}

private struct PathContainer
{
public Request Request { get; private set; }
public Response Response { get; private set; }
public WebSocketClient WebSocket { get; private set; }

public PathContainer(Request request, Response response, WebSocketClient webSocketClient)
{
this.Request = request;
this.Response = response;
this.WebSocket = webSocketClient;
}
}

public void Open(Host host)
{
if (IsOpen || _tryClose || _tryOpen) return;
Expand Down

0 comments on commit c85fc67

Please sign in to comment.