diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index 394bbf13..97d31a03 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -163,16 +163,6 @@ namespace WebSocketSharp return ret; } - internal static string CheckIfValidProtocols (this string[] protocols) - { - return protocols.Contains ( - protocol => protocol == null || protocol.Length == 0 || !protocol.IsToken ()) - ? "Contains an invalid value." - : protocols.ContainsTwice () - ? "Contains a value twice." - : null; - } - internal static void Close (this HttpListenerResponse response, HttpStatusCode code) { response.StatusCode = (int) code;