[Modify] Remove it

This commit is contained in:
sta 2017-08-08 17:17:34 +09:00
parent 45f0e8b6fc
commit b4bcf2705b

View File

@ -163,17 +163,6 @@ namespace WebSocketSharp
return ret;
}
internal static string CheckIfAvailable (
this WebSocketState state, bool connecting, bool open, bool closing, bool closed)
{
return (!connecting && state == WebSocketState.Connecting) ||
(!open && state == WebSocketState.Open) ||
(!closing && state == WebSocketState.Closing) ||
(!closed && state == WebSocketState.Closed)
? "This operation isn't available in: " + state.ToString ().ToLower ()
: null;
}
internal static string CheckIfValidProtocols (this string[] protocols)
{
return protocols.Contains (