Skip to content

Commit 901f674

Browse files
committed
[Modify] Remove it
1 parent df4b064 commit 901f674

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

websocket-sharp/WebSocket.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,19 +1920,6 @@ private bool validateSecWebSocketVersionServerHeader (string value)
19201920

19211921
#region Internal Methods
19221922

1923-
internal static string CheckCloseParameters (CloseStatusCode code, string reason, bool client)
1924-
{
1925-
return code == CloseStatusCode.NoStatus
1926-
? (!reason.IsNullOrEmpty () ? "NoStatus cannot have a reason." : null)
1927-
: code == CloseStatusCode.MandatoryExtension && !client
1928-
? "MandatoryExtension cannot be used by a server."
1929-
: code == CloseStatusCode.ServerError && client
1930-
? "ServerError cannot be used by a client."
1931-
: !reason.IsNullOrEmpty () && reason.UTF8Encode ().Length > 123
1932-
? "A reason has greater than the allowable max size."
1933-
: null;
1934-
}
1935-
19361923
internal static bool CheckParametersForClose (
19371924
ushort code, string reason, bool client, out string message
19381925
)

0 commit comments

Comments
 (0)