Remove code superseded by the pre- and post-verify switches.
Change-Id: Iacd45b8b0f64a4e215011b865f57df75c4a08981
diff --git a/vm/alloc/Heap.c b/vm/alloc/Heap.c
index ecd7cc8..80b5030 100644
--- a/vm/alloc/Heap.c
+++ b/vm/alloc/Heap.c
@@ -581,26 +581,6 @@
}
/*
- * Suspend the VM as for a GC, and assert-fail if any object has any
- * corrupt references.
- */
-void dvmHeapSuspendAndVerify()
-{
- /* Suspend the VM. */
- dvmSuspendAllThreads(SUSPEND_FOR_VERIFY);
- dvmLockMutex(&gDvm.heapWorkerLock);
- dvmAssertHeapWorkerThreadRunning();
- dvmLockMutex(&gDvm.heapWorkerListLock);
-
- verifyHeap();
-
- /* Resume the VM. */
- dvmUnlockMutex(&gDvm.heapWorkerListLock);
- dvmUnlockMutex(&gDvm.heapWorkerLock);
- dvmResumeAllThreads(SUSPEND_FOR_VERIFY);
-}
-
-/*
* Initiate garbage collection.
*
* NOTES:
diff --git a/vm/alloc/Heap.h b/vm/alloc/Heap.h
index aeaab2b..95740c1 100644
--- a/vm/alloc/Heap.h
+++ b/vm/alloc/Heap.h
@@ -79,12 +79,6 @@
} GcReason;
/*
- * Suspend the VM as for a GC, and assert-fail if any object has any
- * corrupt references.
- */
-void dvmHeapSuspendAndVerify();
-
-/*
* Run the garbage collector without doing any locking.
*/
void dvmCollectGarbageInternal(bool clearSoftRefs, GcReason reason);