summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-26 11:13:47 +0100
committerMichael Adam <obnox@samba.org>2008-03-26 11:15:03 +0100
commitf1c844c16806d41256fe442fb0fbd237dfef9e1f (patch)
tree6b3ba64a0998fb8acdd90e020800b4346bce7ee0 /source3/lib
parentda27c770467d7e0494fbea70d5e424e76851819f (diff)
downloadsamba-f1c844c16806d41256fe442fb0fbd237dfef9e1f.tar.gz
samba-f1c844c16806d41256fe442fb0fbd237dfef9e1f.tar.bz2
samba-f1c844c16806d41256fe442fb0fbd237dfef9e1f.zip
util_tdb: remove trivial and unused tdb_wipe().
It has been replaced by tdb_wipe_all(). Michael (This used to be commit cdde2e4eaca51d51f036ad99d55df7bfd6535b03)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_tdb.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/source3/lib/util_tdb.c b/source3/lib/util_tdb.c
index e9c2d31637..ce5e77f8f4 100644
--- a/source3/lib/util_tdb.c
+++ b/source3/lib/util_tdb.c
@@ -719,23 +719,6 @@ TDB_CONTEXT *tdb_open_log(const char *name, int hash_size, int tdb_flags,
return tdb;
}
-/****************************************************************************
- Allow tdb_delete to be used as a tdb_traversal_fn.
-****************************************************************************/
-
-static int tdb_traverse_delete_fn(TDB_CONTEXT *the_tdb, TDB_DATA key,
- TDB_DATA dbuf, void *state)
-{
- return tdb_delete(the_tdb, key);
-}
-
-int tdb_wipe(TDB_CONTEXT *tdb)
-{
- return tdb_traverse(tdb, tdb_traverse_delete_fn, NULL);
-}
-
-
-
/**
* Search across the whole tdb for keys that match the given pattern