From 0d92f1205d22554a0cd12c04b1d339ae8c69b63f Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 11 Apr 2016 14:42:31 +0900 Subject: [PATCH] [Modify] Remove them --- websocket-sharp/Net/HttpListener.cs | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/websocket-sharp/Net/HttpListener.cs b/websocket-sharp/Net/HttpListener.cs index 70f683b9..92c1c4d1 100644 --- a/websocket-sharp/Net/HttpListener.cs +++ b/websocket-sharp/Net/HttpListener.cs @@ -401,18 +401,6 @@ namespace WebSocketSharp.Net #region Private Methods - private void cleanup (bool force) - { - lock (_ctxRegistrySync) { - if (!force) - sendServiceUnavailable (); - } - - cleanupContextRegistry (); - cleanupConnections (); - cleanupWaitQueue (); - } - private void cleanupConnections () { HttpConnection[] conns = null; @@ -449,22 +437,6 @@ namespace WebSocketSharp.Net ctxs[i].Connection.Close (true); } - private void cleanupWaitQueue () - { - HttpListenerAsyncResult[] aress = null; - lock (_waitQueueSync) { - if (_waitQueue.Count == 0) - return; - - aress = _waitQueue.ToArray (); - _waitQueue.Clear (); - } - - var ex = new ObjectDisposedException (GetType ().ToString ()); - foreach (var ares in aress) - ares.Complete (ex); - } - private void cleanupWaitQueue (Exception exception) { HttpListenerAsyncResult[] aress = null;