]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libsmb/namecache Remove namecache_enable()
authorAndrew Bartlett <abartlet@samba.org>
Tue, 11 May 2010 00:04:30 +0000 (10:04 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 13 May 2010 00:12:26 +0000 (10:12 +1000)
No caller honours the return value, and this call only prints a
DEBUG().  Removing this reduces the number of initialisation
boilerplate calls s3compat has to make.

Andrew Bartlett

source3/libsmb/namecache.c

index dcfc609dcd6dcc4c2e05d6255d304ce06008e5e3..174ea1b9fe8fb4303d509e93050d5ae7dca06f9d 100644 (file)
 
 #define NBTKEY_FMT  "NBT/%s#%02X"
 
-/**
- * Initialise namecache system. Function calls gencache
- * initialisation function to perform necessary actions
- *
- * @return true upon successful initialisation of the cache or
- *         false on failure
- **/
-
-bool namecache_enable(void)
-{
-       /*
-        * Check if name caching disabled by setting the name cache
-        * timeout to zero.
-        */
-
-       if (lp_name_cache_timeout() == 0) {
-               DEBUG(5, ("namecache_enable: disabling netbios name cache\n"));
-               return False;
-       }
-
-       /* I leave it for now, though I don't think we really
-        * need this (mimir, 27.09.2002) */
-       DEBUG(5, ("namecache_enable: enabling netbios namecache, timeout %d "
-                 "seconds\n", lp_name_cache_timeout()));
-
-       return True;
-}
-
 /**
  * Generates a key for netbios name lookups on basis of
  * netbios name and type.