diff --git a/src/coreclr/vm/precode.cpp b/src/coreclr/vm/precode.cpp index 74111c297fc25..e793425d2bec5 100644 --- a/src/coreclr/vm/precode.cpp +++ b/src/coreclr/vm/precode.cpp @@ -150,23 +150,6 @@ MethodDesc* Precode::GetMethodDesc(BOOL fSpeculative /*= FALSE*/) return (PTR_MethodDesc)pMD; } -BOOL Precode::IsCorrectMethodDesc(MethodDesc * pMD) -{ - CONTRACTL - { - NOTHROW; - GC_NOTRIGGER; - MODE_ANY; - } - CONTRACTL_END; - MethodDesc * pMDfromPrecode = GetMethodDesc(TRUE); - - if (pMDfromPrecode == pMD) - return TRUE; - - return FALSE; -} - BOOL Precode::IsPointingToPrestub(PCODE target) { CONTRACTL diff --git a/src/coreclr/vm/precode.h b/src/coreclr/vm/precode.h index aca583676a20f..894a708e195f6 100644 --- a/src/coreclr/vm/precode.h +++ b/src/coreclr/vm/precode.h @@ -531,7 +531,6 @@ class Precode { PTR_PCODE GetTargetSlot(); MethodDesc * GetMethodDesc(BOOL fSpeculative = FALSE); - BOOL IsCorrectMethodDesc(MethodDesc * pMD); static Precode* Allocate(PrecodeType t, MethodDesc* pMD, LoaderAllocator *pLoaderAllocator, AllocMemTracker *pamTracker);