summaryrefslogtreecommitdiff
path: root/source3/lib/gencache.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-07-10 12:24:56 +0200
committerVolker Lendecke <vl@samba.org>2009-07-15 10:55:20 +0200
commit3edcd55bf140d09833284ba5a0f04f86b04ef7dc (patch)
tree4f608ee12dcd56f02143417bc816d318a16e12e4 /source3/lib/gencache.c
parentd936d1bd84e130aaff1de64cb1ecbd1f936dd9c4 (diff)
downloadsamba-3edcd55bf140d09833284ba5a0f04f86b04ef7dc.tar.gz
samba-3edcd55bf140d09833284ba5a0f04f86b04ef7dc.tar.bz2
samba-3edcd55bf140d09833284ba5a0f04f86b04ef7dc.zip
Remove gencache_init/shutdown
gencache_get/set/del/iterate call gencache_init() internally anyway. And we've been very lazy calling gencache_shutdown, so this seems not really required.
Diffstat (limited to 'source3/lib/gencache.c')
-rw-r--r--source3/lib/gencache.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/source3/lib/gencache.c b/source3/lib/gencache.c
index c94fb78541..06eb29345b 100644
--- a/source3/lib/gencache.c
+++ b/source3/lib/gencache.c
@@ -49,7 +49,7 @@ static struct tdb_context *cache;
* false on failure
**/
-bool gencache_init(void)
+static bool gencache_init(void)
{
char* cache_fname = NULL;
@@ -79,25 +79,6 @@ bool gencache_init(void)
/**
- * Cache shutdown function. Closes opened cache tdb file.
- *
- * @return true on successful closing the cache or
- * false on failure during cache shutdown
- **/
-
-bool gencache_shutdown(void)
-{
- int ret;
- /* tdb_close routine returns -1 on error */
- if (!cache) return False;
- DEBUG(5, ("Closing cache file\n"));
- ret = tdb_close(cache);
- cache = NULL;
- return ret != -1;
-}
-
-
-/**
* Set an entry in the cache file. If there's no such
* one, then add it.
*