[Modify] Remove it

This commit is contained in:
sta 2019-02-16 21:45:39 +09:00
parent bdded6d310
commit 61292954f1

View File

@ -732,32 +732,6 @@ namespace WebSocketSharp.Net
return true; return true;
} }
private static bool tryCreatePorts (string value, out int[] result, out string parseError)
{
var ports = value.Trim ('"').Split (',');
var len = ports.Length;
var res = new int[len];
for (var i = 0; i < len; i++) {
res[i] = Int32.MinValue;
var port = ports[i].Trim ();
if (port.Length == 0)
continue;
if (!Int32.TryParse (port, out res[i])) {
result = new int[0];
parseError = port;
return false;
}
}
result = res;
parseError = String.Empty;
return true;
}
#endregion #endregion
#region Internal Methods #region Internal Methods