diff options
author | Jan Kotas <jkotas@microsoft.com> | 2018-11-21 08:23:30 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-21 08:23:30 -0800 |
commit | c94d8e68222d931d4bb1c4eb9a52b4b056e85f12 (patch) | |
tree | 8698c9c4e26b58feee82d8e743ca9e5d89f1f2c6 /src/vm/comdelegate.cpp | |
parent | 5e1cee78e6e7a2464deee07acfe5fe9c33925828 (diff) | |
download | coreclr-c94d8e68222d931d4bb1c4eb9a52b4b056e85f12.tar.gz coreclr-c94d8e68222d931d4bb1c4eb9a52b4b056e85f12.tar.bz2 coreclr-c94d8e68222d931d4bb1c4eb9a52b4b056e85f12.zip |
Delete dead/unused code (#21138)
Diffstat (limited to 'src/vm/comdelegate.cpp')
-rw-r--r-- | src/vm/comdelegate.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/vm/comdelegate.cpp b/src/vm/comdelegate.cpp index 6ffa26709c..24c1213603 100644 --- a/src/vm/comdelegate.cpp +++ b/src/vm/comdelegate.cpp @@ -687,13 +687,6 @@ FCIMPL5(FC_BOOL_RET, COMDelegate::BindToMethodName, TypeHandle methodType = gc.refMethodType->GetType(); - //We should thrown an exception if the assembly doesn't have run access. - //That would be a breaking change from V2. - // - //Assembly *pAssem = methodType.GetAssembly(); - //if (pAssem->IsDynamic() && !pAssem->HasRunAccess()) - // FCThrowRes(kNotSupportedException, W("NotSupported_DynamicAssemblyNoRunAccess")); - MethodDesc *pMatchingMethod = NULL; HELPER_METHOD_FRAME_BEGIN_RET_PROTECT(gc); @@ -819,13 +812,6 @@ FCIMPL5(FC_BOOL_RET, COMDelegate::BindToMethodInfo, Object* refThisUNSAFE, Objec MethodTable *pMethMT = gc.refMethodType->GetType().GetMethodTable(); MethodDesc *method = gc.refMethod->GetMethod(); - //We should thrown an exception if the assembly doesn't have run access. - //That would be a breaking change from V2. - // - //Assembly *pAssem = pMethMT->GetAssembly(); - //if (pAssem->IsDynamic() && !pAssem->HasRunAccess()) - // FCThrowRes(kNotSupportedException, W("NotSupported_DynamicAssemblyNoRunAccess")); - HELPER_METHOD_FRAME_BEGIN_RET_PROTECT(gc); // Assert to track down VS#458689. |