From eb2c76fba9c41b971c81217043dbc877ffb9e0c8 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 22 Nov 2017 15:45:24 +0900 Subject: [PATCH] [Modify] Remove it --- websocket-sharp/WebSocket.cs | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index d2e5a399..a1174815 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -1020,31 +1020,6 @@ namespace WebSocketSharp return true; } - private bool checkIfAvailable ( - bool client, - bool server, - bool connecting, - bool open, - bool closing, - bool closed, - out string message - ) - { - message = null; - - if (!client && _client) { - message = "This operation is not available in: client"; - return false; - } - - if (!server && !_client) { - message = "This operation is not available in: server"; - return false; - } - - return checkIfAvailable (connecting, open, closing, closed, out message); - } - private static bool checkProtocols (string[] protocols, out string message) { message = null;