From 431bc966ea984abfa3b0a06cbab6a7be2fea85cb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 21 Feb 2017 18:41:59 +0100 Subject: [PATCH] winbind: Remove unused wcache_tdc_fetch_domainbysid Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/winbindd/winbindd_cache.c | 41 ------------------------------- source3/winbindd/winbindd_proto.h | 1 - 2 files changed, 42 deletions(-) diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 57874419685..4bb01956e88 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -4724,47 +4724,6 @@ struct winbindd_tdc_domain * wcache_tdc_fetch_domain( TALLOC_CTX *ctx, const cha return d; } -/********************************************************************* - ********************************************************************/ - -struct winbindd_tdc_domain* - wcache_tdc_fetch_domainbysid(TALLOC_CTX *ctx, - const struct dom_sid *sid) -{ - struct winbindd_tdc_domain *dom_list = NULL; - size_t num_domains = 0; - int i; - struct winbindd_tdc_domain *d = NULL; - - DEBUG(10,("wcache_tdc_fetch_domainbysid: Searching for domain %s\n", - sid_string_dbg(sid))); - - if (!init_wcache()) { - return NULL; - } - - /* fetch the list */ - - wcache_tdc_fetch_list(&dom_list, &num_domains); - - for (i = 0; i