lib: Delete unused netsamlogon_cache_shutdown
authorVolker Lendecke <vl@samba.org>
Tue, 29 Nov 2016 14:58:51 +0000 (14:58 +0000)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 2 Dec 2016 08:36:08 +0000 (09:36 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/include/proto.h
source3/libsmb/samlogon_cache.c

index 33e3f6c24f1f119fa77e0ff6e932afcd823a4e5e..c3460a979ff2196f145a6e6d9472f444f0611a12 100644 (file)
@@ -842,7 +842,6 @@ NTSTATUS remote_password_change(const char *remote_machine, const char *user_nam
 /* The following definitions come from libsmb/samlogon_cache.c  */
 
 bool netsamlogon_cache_init(void);
-bool netsamlogon_cache_shutdown(void);
 void netsamlogon_clear_cached_user(const struct dom_sid *user_sid);
 bool netsamlogon_cache_store(const char *username, struct netr_SamInfo3 *info3);
 struct netr_SamInfo3 *netsamlogon_cache_get(TALLOC_CTX *mem_ctx, const struct dom_sid *user_sid);
index c87a233fe2c0de4f757b479d8571f567e25e5169..956df5c25c79870cecf192b546f34ed9a99a88e4 100644 (file)
@@ -87,20 +87,6 @@ clear:
        goto again;
 }
 
-
-/***********************************************************************
- Shutdown samlogon_cache database
-***********************************************************************/
-
-bool netsamlogon_cache_shutdown(void)
-{
-       if (netsamlogon_tdb) {
-               return (tdb_close(netsamlogon_tdb) == 0);
-       }
-
-       return true;
-}
-
 /***********************************************************************
  Clear cache getpwnam and getgroups entries from the winbindd cache
 ***********************************************************************/