s3: Remove unused bitmap_[allocate|free]
authorVolker Lendecke <vl@samba.org>
Sun, 28 Mar 2010 12:32:47 +0000 (14:32 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 28 Mar 2010 13:25:17 +0000 (15:25 +0200)
source3/include/proto.h
source3/lib/bitmap.c

index 7cc211b05a13d92355615738133c8025f5ad5fd7..c270a1dd4e6cb0d395f092eab816b9c14ba8eabc 100644 (file)
@@ -334,8 +334,6 @@ const char *audit_policy_str(TALLOC_CTX *mem_ctx, uint32 policy);
 
 /* The following definitions come from lib/bitmap.c  */
 
-struct bitmap *bitmap_allocate(int n);
-void bitmap_free(struct bitmap *bm);
 struct bitmap *bitmap_talloc(TALLOC_CTX *mem_ctx, int n);
 int bitmap_copy(struct bitmap * const dst, const struct bitmap * const src);
 bool bitmap_set(struct bitmap *bm, unsigned i);
index 37c5b4510e25ee10f960f44762422838ab11107f..bd56b4aad1a5807cef6ee21be1e59646b7212e29 100644 (file)
 /* these functions provide a simple way to allocate integers from a
    pool without repetition */
 
-/****************************************************************************
-allocate a bitmap of the specified size
-****************************************************************************/
-struct bitmap *bitmap_allocate(int n)
-{
-       struct bitmap *bm;
-
-       bm = SMB_MALLOC_P(struct bitmap);
-
-       if (!bm) return NULL;
-
-       bm->n = n;
-       bm->b = SMB_MALLOC_ARRAY(uint32, (n+31)/32);
-       if (!bm->b) {
-               SAFE_FREE(bm);
-               return NULL;
-       }
-
-       memset(bm->b, 0, sizeof(uint32)*((n+31)/32));
-
-       return bm;
-}
-
-/****************************************************************************
-free a bitmap.
-****************************************************************************/
-
-void bitmap_free(struct bitmap *bm)
-{
-       if (!bm)
-               return;
-
-       SAFE_FREE(bm->b);
-       SAFE_FREE(bm);
-}
-
 /****************************************************************************
 talloc a bitmap
 ****************************************************************************/