winbindd: Remove now unused domain->methods
authorChristof Schmitt <cs@samba.org>
Fri, 7 Oct 2016 23:40:22 +0000 (16:40 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 11 Oct 2016 18:15:25 +0000 (20:15 +0200)
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd.h
source3/winbindd/winbindd_ndr.c
source3/winbindd/winbindd_util.c

index 3d49e663a5194320ecd54426a6a8b8e61b790942..fce2e46debd14360a8f42a86493819b39b75f7d1 100644 (file)
@@ -168,11 +168,10 @@ struct winbindd_domain {
 
        bool can_do_ncacn_ip_tcp;
 
-       /* Lookup methods for this domain (LDAP or RPC) */
-       struct winbindd_methods *methods;
-
-       /* the backend methods are used by the cache layer to find the right
-          backend */
+       /*
+        * Lookup methods for this domain (LDAP or RPC). The backend
+        * methods are used by the cache layer.
+        */
        struct winbindd_methods *backend;
 
         /* Private data for the backends (used for connection cache) */
index 029e883b1cefb556443a2035dc8189550d697166..028eb50a10b147eeb5f0ca5df92f4a1e80216c72 100644 (file)
@@ -147,7 +147,6 @@ void ndr_print_winbindd_domain(struct ndr_print *ndr,
        ndr_print_bool(ndr, "online", r->online);
        ndr_print_time_t(ndr, "startup_time", r->startup_time);
        ndr_print_bool(ndr, "startup", r->startup);
-       ndr_print_winbindd_methods(ndr, "methods", r->methods);
        ndr_print_winbindd_methods(ndr, "backend", r->backend);
        ndr_print_ptr(ndr, "private_data", r->private_data);
        ndr_print_string(ndr, "dcname", r->dcname);
index d7071738dcedb0bdf43b9086817ad955cbc9cd36..2d1b03e94fca25c7188cabe8639e5cdd48ddfff8 100644 (file)
@@ -238,7 +238,6 @@ add_trusted_domain_from_tdc(const struct winbindd_tdc_domain *tdc,
                }
        }
 
-       domain->methods = methods;
        domain->backend = NULL;
        domain->internal = is_internal_domain(sid);
        domain->sequence_number = DOM_SEQUENCE_NONE;