]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbindd: Remove unused set_routing_domain()
authorPavel Filipenský <pfilipensky@samba.org>
Mon, 16 Dec 2024 13:39:54 +0000 (14:39 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 17 Dec 2024 13:30:25 +0000 (13:30 +0000)
Commit 9a613f4 winbindd: add routing_domain as parameter to add_trusted_domain
deleted all calls of set_routing_domain().

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue Dec 17 13:30:25 UTC 2024 on atb-devel-224

source3/winbindd/winbindd_proto.h
source3/winbindd/winbindd_util.c

index 2904dec7e830cea23ff66bd547017242b4aeefab..5d428ef2845c42fa865f72ab4849e9d2c649298b 100644 (file)
@@ -502,8 +502,6 @@ NTSTATUS winbind_dual_SamLogon(struct winbindd_domain *domain,
 
 struct winbindd_domain *domain_list(void);
 struct winbindd_domain *wb_next_domain(struct winbindd_domain *domain);
-bool set_routing_domain(struct winbindd_domain *domain,
-                       struct winbindd_domain *routing_domain);
 bool add_trusted_domain_from_auth(uint16_t validation_level,
                                  struct info3_text *info3,
                                  struct info6_text *info6);
index 9515692b5fe390dee341493c2d121db899a86565..48f4c9a67cb2732e15b7a29085ea6c31e19a2e27 100644 (file)
@@ -302,19 +302,6 @@ static NTSTATUS add_trusted_domain(const char *domain_name,
        return NT_STATUS_OK;
 }
 
-bool set_routing_domain(struct winbindd_domain *domain,
-                       struct winbindd_domain *routing_domain)
-{
-       if (domain->routing_domain == NULL) {
-               domain->routing_domain = routing_domain;
-               return true;
-       }
-       if (domain->routing_domain != routing_domain) {
-               return false;
-       }
-       return true;
-}
-
 bool add_trusted_domain_from_auth(uint16_t validation_level,
                                  struct info3_text *info3,
                                  struct info6_text *info6)