From 6fa190d636805a7126ebc775c0eacdd97dd78035 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 15 Apr 2015 21:12:26 +0200 Subject: subdom: Remove unused function get_flat_name_from_subdomain_name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The function was added in 70eaade10feedd7845e39170d0b7eebf3a030af1 and is unused since b8d703cf3aba81800cf1b8ccca64bb00ef0b30f7 Reviewed-by: Lukáš Slebodník --- src/providers/ipa/ipa_subdomains.c | 21 --------------------- src/providers/ipa/ipa_subdomains.h | 3 --- 2 files changed, 24 deletions(-) diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c index 0fe2a8dd6..20657ebb5 100644 --- a/src/providers/ipa/ipa_subdomains.c +++ b/src/providers/ipa/ipa_subdomains.c @@ -384,27 +384,6 @@ ipa_ad_subdom_remove(struct ipa_subdomains_ctx *ctx, talloc_zfree(sdom); } -const char *get_flat_name_from_subdomain_name(struct be_ctx *be_ctx, - const char *name) -{ - struct ipa_subdomains_ctx *ctx; - struct sss_domain_info *dom; - - ctx = talloc_get_type(be_ctx->bet_info[BET_SUBDOMAINS].pvt_bet_data, - struct ipa_subdomains_ctx); - if (ctx == NULL) { - DEBUG(SSSDBG_TRACE_ALL, "Subdomains are not configured.\n"); - return NULL; - } - - dom = find_domain_by_name(ctx->be_ctx->domain, name, true); - if (dom) { - return dom->flat_name; - } - - return NULL; -} - static errno_t ipa_ranges_parse_results(TALLOC_CTX *mem_ctx, char *domain_name, size_t count, diff --git a/src/providers/ipa/ipa_subdomains.h b/src/providers/ipa/ipa_subdomains.h index ceb862226..5266943f8 100644 --- a/src/providers/ipa/ipa_subdomains.h +++ b/src/providers/ipa/ipa_subdomains.h @@ -30,9 +30,6 @@ struct be_ctx *ipa_get_subdomains_be_ctx(struct be_ctx *be_ctx); -const char *get_flat_name_from_subdomain_name(struct be_ctx *be_ctx, - const char *name); - int ipa_subdom_init(struct be_ctx *be_ctx, struct ipa_id_ctx *id_ctx, struct bet_ops **ops, -- cgit