[Modify] Remove it

This commit is contained in:
sta 2020-06-14 15:48:30 +09:00
parent 8c600dc49f
commit 4ad02488ae

View File

@ -827,27 +827,6 @@ namespace WebSocketSharp.Net
}
}
private void checkState (bool response)
{
if (_state == HttpHeaderType.Unspecified)
return;
if (response) {
if (_state == HttpHeaderType.Response)
return;
var msg = "This collection is already in use for the request headers.";
throw new InvalidOperationException (msg);
}
if (_state == HttpHeaderType.Response) {
var msg = "This collection is already in use for the response headers.";
throw new InvalidOperationException (msg);
}
}
private static string checkValue (string value)
{
if (value == null)