From: Volker Lendecke Date: Fri, 20 Jan 2017 12:40:23 +0000 (+0100) Subject: libsmb: Remove some stale code X-Git-Tag: tdb-1.3.13~469 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=92f37420cc0f79519f35c348f678a295029f7c8a;p=thirdparty%2Fsamba.git libsmb: Remove some stale code Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider --- diff --git a/source3/include/proto.h b/source3/include/proto.h index e6d42845059..acd01274e40 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -847,8 +847,6 @@ WERROR map_werror_from_unix(int error); /* The following definitions come from libsmb/trustdom_cache.c */ -bool trustdom_cache_enable(void); -bool trustdom_cache_shutdown(void); bool trustdom_cache_store(const char *name, const char *alt_name, const struct dom_sid *sid, time_t timeout); bool trustdom_cache_fetch(const char* name, struct dom_sid* sid); diff --git a/source3/libsmb/trustdom_cache.c b/source3/libsmb/trustdom_cache.c index d78a28c5b3a..587e1d22db3 100644 --- a/source3/libsmb/trustdom_cache.c +++ b/source3/libsmb/trustdom_cache.c @@ -43,34 +43,6 @@ * list of trusted domains **/ -/** - * Initialise trustdom name caching system. Call gencache - * initialisation routine to perform necessary activities. - * - * @return true upon successful cache initialisation or - * false if cache init failed - **/ - -bool trustdom_cache_enable(void) -{ - return True; -} - - -/** - * Shutdown trustdom name caching system. Calls gencache - * shutdown function. - * - * @return true upon successful cache close or - * false if it failed - **/ - -bool trustdom_cache_shutdown(void) -{ - return True; -} - - /** * Form up trustdom name key. It is based only * on domain name now. diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index 2cd20014267..3c16366597b 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -243,8 +243,6 @@ static void terminate(bool is_parent) idmap_close(); - trustdom_cache_shutdown(); - gencache_stabilize(); #if 0