[mono] Remove some dead code from Delegate.DynamicInvoke (#37085)
authorAleksey Kliger (λgeek) <alklig@microsoft.com>
Fri, 29 May 2020 19:30:41 +0000 (15:30 -0400)
committerGitHub <noreply@github.com>
Fri, 29 May 2020 19:30:41 +0000 (15:30 -0400)
commitca9b9874605cdcc1c4ed33b6b78c5607f51c904f
tree5cd8baaa550ced93bfeb18d7a3ef66eb2e4d2778
parent36ba50404fe1ba58d5daee5acb723c2ca5f3c595
[mono] Remove some dead code from Delegate.DynamicInvoke (#37085)

* [mono] Remove some dead code from System.Delegate.DynamicInvokeImpl

Remove some dead code from `System.Delegate.DynamicInvoke`.  It should be the
case that `Method` is non-`null` when we call `DynamicInvoke` - the delegate
method should be known at the time of the invoke, and it should not be picked
based on the arguments.

Fixes https://github.com/dotnet/runtime/issues/37008
src/mono/netcore/System.Private.CoreLib/src/System/Delegate.Mono.cs