summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-04-15 21:12:26 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-04-16 09:31:48 +0200
commit6fa190d636805a7126ebc775c0eacdd97dd78035 (patch)
tree302dde09586a4e4d8f86974cebaefdb58ed07971
parent475d986b534c5e0dfdb8e2348ab89b13fd4874aa (diff)
downloadsssd-6fa190d636805a7126ebc775c0eacdd97dd78035.tar.gz
sssd-6fa190d636805a7126ebc775c0eacdd97dd78035.tar.xz
sssd-6fa190d636805a7126ebc775c0eacdd97dd78035.zip
subdom: Remove unused function get_flat_name_from_subdomain_name
The function was added in 70eaade10feedd7845e39170d0b7eebf3a030af1 and is unused since b8d703cf3aba81800cf1b8ccca64bb00ef0b30f7 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
-rw-r--r--src/providers/ipa/ipa_subdomains.c21
-rw-r--r--src/providers/ipa/ipa_subdomains.h3
2 files changed, 0 insertions, 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,