summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-09-01 17:50:32 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-09-11 17:00:48 +0200
commit63fb0857378c450d9806b1a3c6bb5657f00a8ba1 (patch)
tree233416654fcaa9ca244e4c740f2e43f230e16cbb /src
parent5dbdcc2c7210a0e3eb60ad1e85ba33f27d7faeda (diff)
downloadsssd-63fb0857378c450d9806b1a3c6bb5657f00a8ba1.tar.gz
sssd-63fb0857378c450d9806b1a3c6bb5657f00a8ba1.tar.xz
sssd-63fb0857378c450d9806b1a3c6bb5657f00a8ba1.zip
SDAP: Remove unused function
Reviewed-by: Pavel Reichl <preichl@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/providers/ldap/ldap_common.c5
-rw-r--r--src/providers/ldap/ldap_common.h2
-rw-r--r--src/providers/ldap/sdap_fd_events.c4
3 files changed, 2 insertions, 9 deletions
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