From 45d3bb4bdbd140a48542faf9b1540215bdbff861 Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 6 Jun 2017 16:00:18 +0900 Subject: [PATCH] [Modify] Remove it --- websocket-sharp/Server/HttpServer.cs | 29 ---------------------------- 1 file changed, 29 deletions(-) diff --git a/websocket-sharp/Server/HttpServer.cs b/websocket-sharp/Server/HttpServer.cs index 6286f27f..7996b177 100644 --- a/websocket-sharp/Server/HttpServer.cs +++ b/websocket-sharp/Server/HttpServer.cs @@ -806,35 +806,6 @@ namespace WebSocketSharp.Server return true; } - 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 static string convertToString (System.Net.IPAddress address) { return address.AddressFamily == AddressFamily.InterNetworkV6