]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
winbind: Remove unused wcache_tdc_fetch_domainbysid
authorVolker Lendecke <vl@samba.org>
Tue, 21 Feb 2017 17:41:59 +0000 (18:41 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 7 Mar 2017 23:04:22 +0000 (00:04 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_cache.c
source3/winbindd/winbindd_proto.h

index 5787441968558a24e6d60ea907edaf842f34f2bd..4bb01956e886d8c98c7f239015981e0c0cc39a07 100644 (file)
@@ -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<num_domains; i++) {
-               if (dom_sid_equal(sid, &(dom_list[i].sid))) {
-                       DEBUG(10, ("wcache_tdc_fetch_domainbysid: "
-                                  "Found domain %s for SID %s\n",
-                                  dom_list[i].domain_name,
-                                  sid_string_dbg(sid)));
-
-                       d = wcache_tdc_dup_domain(ctx, &dom_list[i]);
-                       break;
-               }
-       }
-
-        TALLOC_FREE(dom_list);
-
-       return d;
-}
-
-
 /*********************************************************************
  ********************************************************************/
 
index 09be4b2ff3c05da5100f7873bfeea651714d42bc..c5d934ed96f5a10a1d311b33bfa2afb8c0792517 100644 (file)
@@ -192,7 +192,6 @@ bool winbindd_cache_validate_and_initialize(void);
 bool wcache_tdc_fetch_list( struct winbindd_tdc_domain **domains, size_t *num_domains );
 bool wcache_tdc_add_domain( struct winbindd_domain *domain );
 struct winbindd_tdc_domain * wcache_tdc_fetch_domain( TALLOC_CTX *ctx, const char *name );
-struct winbindd_tdc_domain* wcache_tdc_fetch_domainbysid(TALLOC_CTX *ctx, const struct dom_sid *sid);
 void wcache_tdc_clear( void );
 bool wcache_store_seqnum(const char *domain_name, uint32_t seqnum,
                         time_t last_seq_check);