s3:namecache: remove unused namecache_shutdown() function
authorStefan Metzmacher <metze@samba.org>
Thu, 22 Jan 2009 09:19:14 +0000 (10:19 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 27 Jan 2009 14:28:06 +0000 (15:28 +0100)
metze

source3/include/proto.h
source3/libsmb/namecache.c
source3/smbd/server.c

index 88384197055aa6bed2c05b6b3888d073f43eedf0..c02a41a67822dc315ee79f43f59774a94f2273ae 100644 (file)
@@ -2944,7 +2944,6 @@ NTSTATUS map_nt_error_from_gss(uint32 gss_maj, uint32 minor);
 /* The following definitions come from libsmb/namecache.c  */
 
 bool namecache_enable(void);
-bool namecache_shutdown(void);
 bool namecache_store(const char *name,
                        int name_type,
                        int num_names,
index ba706e5ee26488c7ea533a1db7bfec03550e1c0d..d3230cffefb43548d199267a791467bf70c52f8c 100644 (file)
@@ -61,27 +61,6 @@ bool namecache_enable(void)
        return True;
 }
 
-/**
- * Shutdown namecache. Routine calls gencache close function
- * to safely close gencache file.
- *
- * @return true upon successful shutdown of the cache or
- *         false on failure
- **/
-
-bool namecache_shutdown(void)
-{
-       if (!gencache_shutdown()) {
-               DEBUG(2, ("namecache_shutdown: "
-                       "Couldn't close namecache on top of gencache.\n"));
-               return False;
-       }
-
-       DEBUG(5, ("namecache_shutdown: "
-               "netbios namecache closed successfully.\n"));
-       return True;
-}
-
 /**
  * Generates a key for netbios name lookups on basis of
  * netbios name and type.
index 505763014eeb755e803116324e594e512a573156..65fb0a84d147a61d23aa62409706935a8a938d0d 100644 (file)
@@ -1476,8 +1476,6 @@ extern void build_options(bool screen);
 
        smbd_process();
 
-       namecache_shutdown();
-
        exit_server_cleanly(NULL);
        return(0);
 }