diff --git a/websocket-sharp/Net/WebHeaderCollection.cs b/websocket-sharp/Net/WebHeaderCollection.cs index 40ad226c..3f78517f 100644 --- a/websocket-sharp/Net/WebHeaderCollection.cs +++ b/websocket-sharp/Net/WebHeaderCollection.cs @@ -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)