Skip to content

Commit 231314d

Browse files
Delete call to GetMethod in runtime type system (#85902)
I think this is a leftover from one of the appmodels that we deleted. I don't believe this ever returns non-empty enumeration.
1 parent 5eef91d commit 231314d

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/TypeSystem/TypeSystemContext.Runtime.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -431,15 +431,6 @@ protected override MethodDesc CreateValueFromKey(RuntimeMethodKey key)
431431
MethodDesc typicalMethod = key._owningType.Context.ResolveRuntimeMethod(key._unboxingStub, (DefType)key._owningType.GetTypeDefinition(), key._methodNameAndSignature, IntPtr.Zero, false);
432432
return typicalMethod.Context.GetMethodForInstantiatedType(typicalMethod, (InstantiatedType)key._owningType);
433433
}
434-
435-
// Otherwise, just check to see if there is a method discoverable via GetMethods
436-
foreach (MethodDesc potentialMethod in key._owningType.GetMethods())
437-
{
438-
if (CompareKeyToValue(key, potentialMethod))
439-
{
440-
return potentialMethod;
441-
}
442-
}
443434
}
444435
else
445436
{

0 commit comments

Comments
 (0)