From 63fb0857378c450d9806b1a3c6bb5657f00a8ba1 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 1 Sep 2015 17:50:32 +0200 Subject: SDAP: Remove unused function Reviewed-by: Pavel Reichl --- src/providers/ldap/ldap_common.c | 5 ----- src/providers/ldap/ldap_common.h | 2 -- src/providers/ldap/sdap_fd_events.c | 4 ++-- 3 files changed, 2 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c index 840a09871..aa4c6cb85 100644 --- a/src/providers/ldap/ldap_common.c +++ b/src/providers/ldap/ldap_common.c @@ -44,11 +44,6 @@ void sdap_handler_done(struct be_req *req, int dp_err, return be_req_terminate(req, dp_err, error, errstr); } -void sdap_mark_offline(struct sdap_id_ctx *ctx) -{ - be_mark_offline(ctx->be); -} - int ldap_id_setup_tasks(struct sdap_id_ctx *ctx) { return sdap_id_setup_tasks(ctx->be, ctx, ctx->opts->sdom, diff --git a/src/providers/ldap/ldap_common.h b/src/providers/ldap/ldap_common.h index 8294d1db2..716aaa08e 100644 --- a/src/providers/ldap/ldap_common.h +++ b/src/providers/ldap/ldap_common.h @@ -210,8 +210,6 @@ errno_t ldap_setup_cleanup(struct sdap_id_ctx *id_ctx, errno_t ldap_id_cleanup(struct sdap_options *opts, struct sdap_domain *sdom); -void sdap_mark_offline(struct sdap_id_ctx *ctx); - struct tevent_req *groups_get_send(TALLOC_CTX *memctx, struct tevent_context *ev, struct sdap_id_ctx *ctx, diff --git a/src/providers/ldap/sdap_fd_events.c b/src/providers/ldap/sdap_fd_events.c index cfd656ff9..eeb4c9528 100644 --- a/src/providers/ldap/sdap_fd_events.c +++ b/src/providers/ldap/sdap_fd_events.c @@ -49,8 +49,8 @@ int get_fd_from_ldap(LDAP *ldap, int *fd) int remove_ldap_connection_callbacks(struct sdap_handle *sh) { - /* sdap_fd_events might be NULL here if sdap_mark_offline() - * was called before a connection was established. + /* sdap_fd_events might be NULL here if the back end was marked offline + * before a connection was established. */ if (sh->sdap_fd_events) { #ifdef HAVE_LDAP_CONNCB -- cgit