From 74fe94ef052181ccff8c01aeb1be26d484327373 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 22 Nov 2017 15:48:40 +0900 Subject: [PATCH] [Modify] Remove it --- websocket-sharp/WebSocket.cs | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index a1174815..dfafa0b1 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -991,35 +991,6 @@ namespace WebSocketSharp return true; } - private bool checkIfAvailable ( - bool connecting, bool open, bool closing, bool closed, out string message - ) - { - message = null; - - if (!connecting && _readyState == WebSocketState.Connecting) { - message = "This operation is not available in: connecting"; - return false; - } - - if (!open && _readyState == WebSocketState.Open) { - message = "This operation is not available in: open"; - return false; - } - - if (!closing && _readyState == WebSocketState.Closing) { - message = "This operation is not available in: closing"; - return false; - } - - if (!closed && _readyState == WebSocketState.Closed) { - message = "This operation is not available in: closed"; - return false; - } - - return true; - } - private static bool checkProtocols (string[] protocols, out string message) { message = null;