From bf7cf40e14b8cf35c68be089735dd16081db9dc4 Mon Sep 17 00:00:00 2001 From: Aditya Mandaleeka Date: Tue, 11 Apr 2017 18:08:08 -0700 Subject: Delete Ref_ContainHandle and ContainsOBJECTHANDLE. --- src/gc/handletable.cpp | 18 ------------------ src/gc/objecthandle.h | 1 - 2 files changed, 19 deletions(-) (limited to 'src/gc') 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 -- cgit v1.2.3