Removed the getEndPointListener (IPAddress, int, bool, HttpListener) method from the EndPointManager class

This commit is contained in:
sta 2015-02-19 16:33:36 +09:00
parent 196a316141
commit 8c9898366b

View File

@ -92,37 +92,6 @@ namespace WebSocketSharp.Net
epl.AddPrefix (pref, httpListener);
}
private static EndPointListener getEndPointListener (
IPAddress address, int port, bool secure, HttpListener httpListener)
{
Dictionary<int, EndPointListener> eps = null;
if (_ipToEndpoints.ContainsKey (address)) {
eps = _ipToEndpoints[address];
}
else {
eps = new Dictionary<int, EndPointListener> ();
_ipToEndpoints[address] = eps;
}
EndPointListener epl = null;
if (eps.ContainsKey (port)) {
epl = eps[port];
}
else {
epl = new EndPointListener (
address,
port,
secure,
httpListener.CertificateFolderPath,
httpListener.SslConfiguration,
httpListener.ReuseAddress);
eps[port] = epl;
}
return epl;
}
private static EndPointListener getEndPointListener (
string host, int port, HttpListener httpListener, bool secure)
{