From c066adaf54d7d342d39dcf255d0f6842bab2f47e Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 21 Feb 2017 16:27:22 +0900 Subject: [PATCH] [Modify] Remove it --- websocket-sharp/Server/WebSocketServer.cs | 29 ----------------------- 1 file changed, 29 deletions(-) diff --git a/websocket-sharp/Server/WebSocketServer.cs b/websocket-sharp/Server/WebSocketServer.cs index 63e646b0..a315b751 100644 --- a/websocket-sharp/Server/WebSocketServer.cs +++ b/websocket-sharp/Server/WebSocketServer.cs @@ -731,35 +731,6 @@ namespace WebSocketSharp.Server || name == _hostname; } - private bool checkIfAvailable ( - bool ready, bool start, bool shutting, bool stop, out string message - ) - { - message = null; - - if (!ready && _state == ServerState.Ready) { - message = "This operation is not available in: ready"; - return false; - } - - if (!start && _state == ServerState.Start) { - message = "This operation is not available in: start"; - return false; - } - - if (!shutting && _state == ServerState.ShuttingDown) { - message = "This operation is not available in: shutting down"; - return false; - } - - if (!stop && _state == ServerState.Stop) { - message = "This operation is not available in: stop"; - return false; - } - - return true; - } - private bool checkServicePath (string path, out string message) { message = null;