From 23d95324b506439835fb65cf18eb10fd2ddafd83 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 26 Mar 2008 11:13:47 +0100 Subject: util_tdb: remove trivial and unused tdb_wipe(). It has been replaced by tdb_wipe_all(). Michael (cherry picked from commit cdde2e4eaca51d51f036ad99d55df7bfd6535b03) --- source/lib/util_tdb.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'source/lib/util_tdb.c') diff --git a/source/lib/util_tdb.c b/source/lib/util_tdb.c index e9c2d31637e..ce5e77f8f4a 100644 --- a/source/lib/util_tdb.c +++ b/source/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 -- cgit v1.2.1