From a860400725c194eeb7a849eba6b5849c4248498f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 10 Mar 2017 15:23:36 +0100 Subject: [PATCH] winbindd: remove unused find_root_domain() Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke --- source3/winbindd/winbindd_proto.h | 1 - source3/winbindd/winbindd_util.c | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h index c5d934ed96f..ede2c3e774c 100644 --- a/source3/winbindd/winbindd_proto.h +++ b/source3/winbindd/winbindd_proto.h @@ -470,7 +470,6 @@ struct winbindd_domain *find_domain_from_name(const char *domain_name); struct winbindd_domain *find_domain_from_sid_noinit(const struct dom_sid *sid); struct winbindd_domain *find_domain_from_sid(const struct dom_sid *sid); struct winbindd_domain *find_our_domain(void); -struct winbindd_domain *find_root_domain(void); struct winbindd_domain *find_lookup_domain_from_sid(const struct dom_sid *sid); struct winbindd_domain *find_lookup_domain_from_name(const char *domain_name); bool parse_domain_user(const char *domuser, fstring domain, fstring user); diff --git a/source3/winbindd/winbindd_util.c b/source3/winbindd/winbindd_util.c index ab6862dc973..1a38dde2a7a 100644 --- a/source3/winbindd/winbindd_util.c +++ b/source3/winbindd/winbindd_util.c @@ -1005,17 +1005,6 @@ struct winbindd_domain *find_our_domain(void) return NULL; } -struct winbindd_domain *find_root_domain(void) -{ - struct winbindd_domain *ours = find_our_domain(); - - if (ours->forest_name == NULL) { - return NULL; - } - - return find_domain_from_name( ours->forest_name ); -} - /* Find the appropriate domain to lookup a name or SID */ struct winbindd_domain *find_lookup_domain_from_sid(const struct dom_sid *sid)