diff options
author | Jan Kotas <jkotas@microsoft.com> | 2018-06-15 15:44:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-15 15:44:36 -0700 |
commit | 6bb3f84d42b9756c5fa18158db8f724d57796296 (patch) | |
tree | 2ae71f9f6aa18f40dab879c82c80794359e42aaf /src/vm/typehandle.cpp | |
parent | 13954f2b3072866be61c273d17f7b4fd2d1e6099 (diff) | |
download | coreclr-6bb3f84d42b9756c5fa18158db8f724d57796296.tar.gz coreclr-6bb3f84d42b9756c5fa18158db8f724d57796296.tar.bz2 coreclr-6bb3f84d42b9756c5fa18158db8f724d57796296.zip |
Delete bitrotten appdomain agility checks (#18489)
Fixes #18484
Diffstat (limited to 'src/vm/typehandle.cpp')
-rw-r--r-- | src/vm/typehandle.cpp | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/src/vm/typehandle.cpp b/src/vm/typehandle.cpp index c8c6362dd6..405be60543 100644 --- a/src/vm/typehandle.cpp +++ b/src/vm/typehandle.cpp @@ -1442,101 +1442,6 @@ OBJECTREF TypeHandle::GetManagedClassObjectFast() const #endif // #ifndef DACCESS_COMPILE -#if defined(_DEBUG) - -BOOL TypeHandle::IsAppDomainAgile() const -{ - LIMITED_METHOD_CONTRACT; - - if (!IsTypeDesc()) - { - MethodTable *pMT = AsMethodTable(); - return pMT->GetClass()->IsAppDomainAgile(); - } - else if (IsArray()) - { - TypeHandle th = AsArray()->GetArrayElementTypeHandle(); - return th.IsArrayOfElementsAppDomainAgile(); - } - else - { - // <TODO>@todo: consider other types of type handles agile?</TODO> - return FALSE; - } -} - -BOOL TypeHandle::IsCheckAppDomainAgile() const -{ - LIMITED_METHOD_CONTRACT; - - if (!IsTypeDesc()) - { - MethodTable *pMT = AsMethodTable(); - return pMT->GetClass()->IsCheckAppDomainAgile(); - } - else if (IsArray()) - { - TypeHandle th = AsArray()->GetArrayElementTypeHandle(); - return th.IsArrayOfElementsCheckAppDomainAgile(); - } - else - { - // <TODO>@todo: consider other types of type handles agile?</TODO> - return FALSE; - } -} - -BOOL TypeHandle::IsArrayOfElementsAppDomainAgile() const -{ - LIMITED_METHOD_CONTRACT; - - if (!IsTypeDesc()) - { - MethodTable *pMT = AsMethodTable(); - return (pMT->GetClass()->IsSealed()) && pMT->GetClass()->IsAppDomainAgile(); - } - else - if (IsArray()) - { - return AsArray()->GetArrayElementTypeHandle().IsArrayOfElementsAppDomainAgile(); - } - else - { - // I'm not sure how to prove a typedesc is sealed, so - // just bail and return FALSE here rather than recursing. - - return FALSE; - } -} - -BOOL TypeHandle::IsArrayOfElementsCheckAppDomainAgile() const -{ - LIMITED_METHOD_CONTRACT; - - if (!IsTypeDesc()) - { - MethodTable *pMT = AsMethodTable(); - return (pMT->GetClass()->IsAppDomainAgile() - && (pMT->GetClass()->IsSealed()) == 0) - || pMT->GetClass()->IsCheckAppDomainAgile(); - } - else - if (IsArray()) - { - return AsArray()->GetArrayElementTypeHandle().IsArrayOfElementsCheckAppDomainAgile(); - } - else - { - // I'm not sure how to prove a typedesc is sealed, so - // just bail and return FALSE here rather than recursing. - - return FALSE; - } -} - -#endif // defined(_DEBUG) - - BOOL TypeHandle::IsByRef() const { LIMITED_METHOD_CONTRACT; |