From e0aab377bdc86884d460ef9b4515484f4282b31e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Filipensk=C3=BD?= Date: Mon, 16 Dec 2024 14:39:54 +0100 Subject: [PATCH] s3:winbindd: Remove unused set_routing_domain() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 9a613f4 winbindd: add routing_domain as parameter to add_trusted_domain deleted all calls of set_routing_domain(). Signed-off-by: Pavel Filipenský Reviewed-by: Volker Lendecke Reviewed-by: Andreas Schneider Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Tue Dec 17 13:30:25 UTC 2024 on atb-devel-224 --- source3/winbindd/winbindd_proto.h | 2 -- source3/winbindd/winbindd_util.c | 13 ------------- 2 files changed, 15 deletions(-) diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h index 2904dec7e83..5d428ef2845 100644 --- a/source3/winbindd/winbindd_proto.h +++ b/source3/winbindd/winbindd_proto.h @@ -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); diff --git a/source3/winbindd/winbindd_util.c b/source3/winbindd/winbindd_util.c index 9515692b5fe..48f4c9a67cb 100644 --- a/source3/winbindd/winbindd_util.c +++ b/source3/winbindd/winbindd_util.c @@ -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)