1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

winbindd: remove unused find_root_domain()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Stefan Metzmacher 2017-03-10 15:23:36 +01:00 committed by Volker Lendecke
parent 0eb537adb1
commit a860400725
2 changed files with 0 additions and 12 deletions

View File

@ -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_noinit(const struct dom_sid *sid);
struct winbindd_domain *find_domain_from_sid(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_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_sid(const struct dom_sid *sid);
struct winbindd_domain *find_lookup_domain_from_name(const char *domain_name); struct winbindd_domain *find_lookup_domain_from_name(const char *domain_name);
bool parse_domain_user(const char *domuser, fstring domain, fstring user); bool parse_domain_user(const char *domuser, fstring domain, fstring user);

View File

@ -1005,17 +1005,6 @@ struct winbindd_domain *find_our_domain(void)
return NULL; 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 */ /* Find the appropriate domain to lookup a name or SID */
struct winbindd_domain *find_lookup_domain_from_sid(const struct dom_sid *sid) struct winbindd_domain *find_lookup_domain_from_sid(const struct dom_sid *sid)