diff options
author | Aditya Mandaleeka <adityam@microsoft.com> | 2017-04-11 18:08:08 -0700 |
---|---|---|
committer | Aditya Mandaleeka <adityam@microsoft.com> | 2017-04-11 18:29:32 -0700 |
commit | bf7cf40e14b8cf35c68be089735dd16081db9dc4 (patch) | |
tree | 067e63fb4af61bb08af1d0ee1681bd03951b4e20 | |
parent | 734f13c964610d1f4fee08611beca1aa02de0082 (diff) | |
download | coreclr-bf7cf40e14b8cf35c68be089735dd16081db9dc4.tar.gz coreclr-bf7cf40e14b8cf35c68be089735dd16081db9dc4.tar.bz2 coreclr-bf7cf40e14b8cf35c68be089735dd16081db9dc4.zip |
Delete Ref_ContainHandle and ContainsOBJECTHANDLE.
-rw-r--r-- | src/gc/handletable.cpp | 18 | ||||
-rw-r--r-- | src/gc/objecthandle.h | 1 | ||||
-rw-r--r-- | src/vm/appdomain.cpp | 11 | ||||
-rw-r--r-- | src/vm/appdomain.hpp | 2 |
4 files changed, 0 insertions, 32 deletions
diff --git a/src/gc/handletable.cpp b/src/gc/handletable.cpp index e56e1e1701..eee181959f 100644 --- a/src/gc/handletable.cpp +++ b/src/gc/handletable.cpp @@ -1338,24 +1338,6 @@ void Ref_RelocateAsyncPinHandles(HandleTableBucket *pSource, HandleTableBucket } #endif // !FEATURE_REDHAWK -BOOL Ref_ContainHandle(HandleTableBucket *pBucket, OBJECTHANDLE handle) -{ - CONTRACTL - { - NOTHROW; - GC_NOTRIGGER; - } - CONTRACTL_END; - - int limit = getNumberOfSlots(); - for (int n = 0; n < limit; n ++ ) - { - if (TableContainHandle(Table(pBucket->pTable[n]), handle)) - return TRUE; - } - - return FALSE; -} /*--------------------------------------------------------------------------*/ diff --git a/src/gc/objecthandle.h b/src/gc/objecthandle.h index 12124f8e96..d3e45f8659 100644 --- a/src/gc/objecthandle.h +++ b/src/gc/objecthandle.h @@ -111,7 +111,6 @@ BOOL Ref_HandleAsyncPinHandles(); void Ref_RelocateAsyncPinHandles(HandleTableBucket *pSource, HandleTableBucket *pTarget); void Ref_RemoveHandleTableBucket(HandleTableBucket *pBucket); void Ref_DestroyHandleTableBucket(HandleTableBucket *pBucket); -BOOL Ref_ContainHandle(HandleTableBucket *pBucket, OBJECTHANDLE handle); /* * GC-time scanning entrypoints diff --git a/src/vm/appdomain.cpp b/src/vm/appdomain.cpp index 167db2d193..d9f42950c2 100644 --- a/src/vm/appdomain.cpp +++ b/src/vm/appdomain.cpp @@ -993,17 +993,6 @@ void BaseDomain::InitVSD() } #ifndef CROSSGEN_COMPILE -BOOL BaseDomain::ContainsOBJECTHANDLE(OBJECTHANDLE handle) -{ - CONTRACTL - { - NOTHROW; - GC_NOTRIGGER; - } - CONTRACTL_END; - - return Ref_ContainHandle(m_hHandleTableBucket,handle); -} DWORD BaseDomain::AllocateContextStaticsOffset(DWORD* pOffsetSlot) { diff --git a/src/vm/appdomain.hpp b/src/vm/appdomain.hpp index 99e22d3e0a..3573d2a0de 100644 --- a/src/vm/appdomain.hpp +++ b/src/vm/appdomain.hpp @@ -1343,8 +1343,6 @@ public: } #endif // DACCESS_COMPILE && !CROSSGEN_COMPILE - BOOL ContainsOBJECTHANDLE(OBJECTHANDLE handle); - IUnknown *GetFusionContext() {LIMITED_METHOD_CONTRACT; return m_pFusionContext; } CLRPrivBinderCoreCLR *GetTPABinderContext() {LIMITED_METHOD_CONTRACT; return m_pTPABinderContext; } |