summaryrefslogtreecommitdiff
path: root/src/gc/handletable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gc/handletable.cpp')
-rw-r--r--src/gc/handletable.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/gc/handletable.cpp b/src/gc/handletable.cpp
index 48b763d9e8..416363c7bc 100644
--- a/src/gc/handletable.cpp
+++ b/src/gc/handletable.cpp
@@ -368,15 +368,6 @@ void ValidateFetchObjrefForHandle(OBJECTREF objref, ADIndex appDomainIndex)
_ASSERTE(pDomain != NULL);
_ASSERTE(!pDomain->NoAccessToHandleTable());
-#if CHECK_APP_DOMAIN_LEAKS
- if (g_pConfig->AppDomainLeaks() && objref != NULL)
- {
- if (appDomainIndex.m_dwIndex)
- objref->TryAssignAppDomain(pDomain);
- else
- objref->TrySetAppDomainAgile();
- }
-#endif
END_DEBUG_ONLY_CODE;
}
@@ -398,15 +389,6 @@ void ValidateAssignObjrefForHandle(OBJECTREF objref, ADIndex appDomainIndex)
_ASSERTE(pDomain != NULL);
_ASSERTE(!pDomain->NoAccessToHandleTable());
-#if CHECK_APP_DOMAIN_LEAKS
- if (g_pConfig->AppDomainLeaks() && objref != NULL)
- {
- if (appDomainIndex.m_dwIndex)
- objref->TryAssignAppDomain(pDomain);
- else
- objref->TrySetAppDomainAgile();
- }
-#endif
END_DEBUG_ONLY_CODE;
}