[Modify] Remove it

This commit is contained in:
sta 2017-11-11 15:47:16 +09:00
parent 9127a42c43
commit 5bbb5bb2f4

View File

@ -1017,43 +1017,6 @@ namespace WebSocketSharp
return checkIfAvailable (connecting, open, closing, closed, out message); return checkIfAvailable (connecting, open, closing, closed, out message);
} }
private static bool checkParametersForSetProxy (
string url, string username, string password, out string message
)
{
message = null;
if (url.IsNullOrEmpty ())
return true;
Uri uri;
if (!Uri.TryCreate (url, UriKind.Absolute, out uri)
|| uri.Scheme != "http"
|| uri.Segments.Length > 1
) {
message = "'url' is an invalid URL.";
return false;
}
if (username.IsNullOrEmpty ())
return true;
if (username.Contains (':') || !username.IsText ()) {
message = "'username' contains an invalid character.";
return false;
}
if (password.IsNullOrEmpty ())
return true;
if (!password.IsText ()) {
message = "'password' contains an invalid character.";
return false;
}
return true;
}
private static bool checkProtocols (string[] protocols, out string message) private static bool checkProtocols (string[] protocols, out string message)
{ {
message = null; message = null;