summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-03-28 14:32:47 +0200
committerVolker Lendecke <vl@samba.org>2010-03-28 15:25:17 +0200
commitcae4105c9232c4d11a13fe21c139b99e803a0282 (patch)
tree4703aea0c053888c4cafd499910de795fe40f5b7 /source3
parent59d09cbed8e6fde867b88dce4408b64132e4ca6d (diff)
downloadsamba-cae4105c9232c4d11a13fe21c139b99e803a0282.tar.gz
samba-cae4105c9232c4d11a13fe21c139b99e803a0282.tar.bz2
samba-cae4105c9232c4d11a13fe21c139b99e803a0282.zip
s3: Remove unused bitmap_[allocate|free]
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h2
-rw-r--r--source3/lib/bitmap.c36
2 files changed, 0 insertions, 38 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 7cc211b05a..c270a1dd4e 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -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);
diff --git a/source3/lib/bitmap.c b/source3/lib/bitmap.c
index 37c5b4510e..bd56b4aad1 100644
--- a/source3/lib/bitmap.c
+++ b/source3/lib/bitmap.c
@@ -23,42 +23,6 @@
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
****************************************************************************/
struct bitmap *bitmap_talloc(TALLOC_CTX *mem_ctx, int n)