Remove unused parameter from ListenerSecondary.ReadStartCallback

This commit is contained in:
Stephen Halter 2015-11-05 12:09:50 -08:00
parent fff28990fe
commit bb9f83186b
1 changed files with 3 additions and 6 deletions

View File

@ -94,11 +94,8 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
{ {
DispatchPipe.ReadStart( DispatchPipe.ReadStart(
(handle, status2, state) => ((ListenerSecondary)state)._buf, (handle, status2, state) => ((ListenerSecondary)state)._buf,
(handle, status2, state) => (handle, status2, state) => ((ListenerSecondary)state).ReadStartCallback(handle, status2),
{ this);
var listener = ((ListenerSecondary)state);
listener.ReadStartCallback(handle, status2, listener._ptr);
}, this);
tcs.SetResult(0); tcs.SetResult(0);
} }
@ -109,7 +106,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
} }
} }
private void ReadStartCallback(UvStreamHandle handle, int status, IntPtr ptr) private void ReadStartCallback(UvStreamHandle handle, int status)
{ {
if (status < 0) if (status < 0)
{ {