[Modify] Remove it

This commit is contained in:
sta 2017-11-22 15:48:40 +09:00
parent eb2c76fba9
commit 74fe94ef05

View File

@ -991,35 +991,6 @@ namespace WebSocketSharp
return true; 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) private static bool checkProtocols (string[] protocols, out string message)
{ {
message = null; message = null;