From dc25551563d336379a6b4b7375ed9d07729cc4db Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 31 Jul 2017 16:39:22 +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 5ad89def..0c432979 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -2074,35 +2074,6 @@ namespace WebSocketSharp #region Internal Methods - internal static bool CheckParametersForClose ( - CloseStatusCode code, string reason, bool client, out string message - ) - { - message = null; - - if (code == CloseStatusCode.NoStatus && !reason.IsNullOrEmpty ()) { - message = "'code' cannot have a reason."; - return false; - } - - if (code == CloseStatusCode.MandatoryExtension && !client) { - message = "'code' cannot be used by a server."; - return false; - } - - if (code == CloseStatusCode.ServerError && client) { - message = "'code' cannot be used by a client."; - return false; - } - - if (!reason.IsNullOrEmpty () && reason.UTF8Encode ().Length > 123) { - message = "The size of 'reason' is greater than the allowable max size."; - return false; - } - - return true; - } - internal static string CheckPingParameter (string message, out byte[] bytes) { bytes = message.UTF8Encode ();