提交 0418da05 编写于 作者: A Aaron Robinson 提交者: Jan Kotas

Remove ComputeSuppressUnmanagedCodeAccessAttr() and usage. (dotnet/coreclr#26409)



Commit migrated from https://github.com/dotnet/coreclr/commit/7f8014fc2ba126149a361c9de21e5f9ee1fca7cf
上级 8398e3b2
......@@ -146,8 +146,6 @@ ComPlusCallInfo *ComPlusCall::PopulateComPlusCallMethodDesc(MethodDesc* pMD, DWO
if (pdwStubFlags == NULL)
return pComInfo;
pMD->ComputeSuppressUnmanagedCodeAccessAttr(pMD->GetMDImport());
//
// Compute NDirectStubFlags
//
......
......@@ -5324,19 +5324,6 @@ void NDirectMethodDesc::InitEarlyBoundNDirectTarget()
}
#endif // !CROSSGEN_COMPILE
//*******************************************************************************
void MethodDesc::ComputeSuppressUnmanagedCodeAccessAttr(IMDInternalImport *pImport)
{
CONTRACTL
{
THROWS;
GC_NOTRIGGER;
FORBID_FAULT;
}
CONTRACTL_END;
}
//*******************************************************************************
BOOL MethodDesc::HasNativeCallableAttribute()
{
......
......@@ -668,7 +668,6 @@ public:
return GetMethodTable()->IsInterface();
}
void ComputeSuppressUnmanagedCodeAccessAttr(IMDInternalImport *pImport);
BOOL HasNativeCallableAttribute();
#ifdef FEATURE_COMINTEROP
......
......@@ -6047,11 +6047,6 @@ MethodTableBuilder::InitMethodDesc(
if (IsMdStatic(dwMemberAttrs))
pNewMD->SetStatic();
// Set suppress unmanaged code access permission attribute
if (pNewMD->IsNDirect())
pNewMD->ComputeSuppressUnmanagedCodeAccessAttr(pIMDII);
#ifdef _DEBUG
// Mark as many methods as synchronized as possible.
//
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册