From: Bart Van Assche Date: Tue, 25 Mar 2008 17:03:01 +0000 (+0000) Subject: Removed unused function. X-Git-Tag: svn/VALGRIND_3_4_0~799 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc0072177bb1f7542661da98802df53536bda498;p=thirdparty%2Fvalgrind.git Removed unused function. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7787 --- diff --git a/exp-drd/drd_bitmap.c b/exp-drd/drd_bitmap.c index 90e7ad5fd2..62e17edae1 100644 --- a/exp-drd/drd_bitmap.c +++ b/exp-drd/drd_bitmap.c @@ -401,25 +401,6 @@ void bm1_clear(struct bitmap1* const bm1, const Addr a1, const Addr a2) bm1->bm0_w[idx] &= ~mask; } -void bm_clear_all(const struct bitmap* const bm) -{ - struct bitmap2* bm2; - struct bitmap2ref* bm2ref; - - VG_(OSetGen_ResetIter)(bm->oset); - - for ( ; (bm2ref = VG_(OSetGen_Next)(bm->oset)) != 0; ) - { - struct bitmap1* bm1; - - bm2 = bm2ref->bm2; - bm1 = &bm2->bm1; - tl_assert(bm1); - VG_(memset)(&bm1->bm0_r[0], 0, sizeof(bm1->bm0_r)); - VG_(memset)(&bm1->bm0_w[0], 0, sizeof(bm1->bm0_w)); - } -} - void bm_clear(const struct bitmap* const bm, const Addr a1, const Addr a2) diff --git a/exp-drd/pub_drd_bitmap.h b/exp-drd/pub_drd_bitmap.h index 611d6b0bef..2bbca0aa9f 100644 --- a/exp-drd/pub_drd_bitmap.h +++ b/exp-drd/pub_drd_bitmap.h @@ -78,7 +78,6 @@ UWord bm_has_any_access(const struct bitmap* const bm, const Addr a1, const Addr a2); UWord bm_has_1(const struct bitmap* const bm, const Addr address, const BmAccessTypeT access_type); -void bm_clear_all(const struct bitmap* const bm); void bm_clear(const struct bitmap* const bm, const Addr a1, const Addr a2); Bool bm_has_conflict_with(const struct bitmap* const bm,