diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-05-11 10:04:30 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-05-13 10:12:26 +1000 |
commit | 4ef847a3b7031147711751f96e002f120bb05f04 (patch) | |
tree | f0578f8a87767e2aedb79e588db8479c0a75885e /source3/libsmb | |
parent | 426d92eedbe002624ab8553d23ec9ea1465acefa (diff) | |
download | samba-4ef847a3b7031147711751f96e002f120bb05f04.tar.gz samba-4ef847a3b7031147711751f96e002f120bb05f04.tar.bz2 samba-4ef847a3b7031147711751f96e002f120bb05f04.zip |
s3:libsmb/namecache Remove namecache_enable()
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
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/namecache.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/source3/libsmb/namecache.c b/source3/libsmb/namecache.c index dcfc609dcd..174ea1b9fe 100644 --- a/source3/libsmb/namecache.c +++ b/source3/libsmb/namecache.c @@ -26,34 +26,6 @@ #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. * The caller must free returned key string when finished. |