Skip to content

Commit 2179b2e

Browse files
committed
Refactored a few for EndPointListener.cs
1 parent e5df795 commit 2179b2e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

websocket-sharp/Net/EndPointListener.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,6 @@ public ServerSslConfiguration SslConfiguration {
145145

146146
private static void addSpecial (List<HttpListenerPrefix> prefixes, HttpListenerPrefix prefix)
147147
{
148-
if (prefixes == null)
149-
return;
150-
151148
var path = prefix.Path;
152149
foreach (var pref in prefixes)
153150
if (pref.Path == path)
@@ -281,9 +278,6 @@ private static void processAccepted (Socket socket, EndPointListener listener)
281278

282279
private static bool removeSpecial (List<HttpListenerPrefix> prefixes, HttpListenerPrefix prefix)
283280
{
284-
if (prefixes == null)
285-
return false;
286-
287281
var path = prefix.Path;
288282
var cnt = prefixes.Count;
289283
for (var i = 0; i < cnt; i++) {

0 commit comments

Comments
 (0)