From 2179b2eec11dfe4bfb1d4161e45e09d5c057a06c Mon Sep 17 00:00:00 2001 From: sta Date: Sun, 4 Jan 2015 14:47:30 +0900 Subject: [PATCH] Refactored a few for EndPointListener.cs --- websocket-sharp/Net/EndPointListener.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/websocket-sharp/Net/EndPointListener.cs b/websocket-sharp/Net/EndPointListener.cs index 368f4cbd..f79ae177 100644 --- a/websocket-sharp/Net/EndPointListener.cs +++ b/websocket-sharp/Net/EndPointListener.cs @@ -145,9 +145,6 @@ namespace WebSocketSharp.Net private static void addSpecial (List prefixes, HttpListenerPrefix prefix) { - if (prefixes == null) - return; - var path = prefix.Path; foreach (var pref in prefixes) if (pref.Path == path) @@ -281,9 +278,6 @@ namespace WebSocketSharp.Net private static bool removeSpecial (List prefixes, HttpListenerPrefix prefix) { - if (prefixes == null) - return false; - var path = prefix.Path; var cnt = prefixes.Count; for (var i = 0; i < cnt; i++) {