From d5c273919d129f884d5fb13e06ad73e01c7176e1 Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Mon, 27 Aug 2012 15:07:08 +0200 Subject: [PATCH] s3:lib: remove unused function connections_traverse() Signed-off-by: Stefan Metzmacher Signed-off-by: Michael Adam --- source3/lib/conn_tdb.c | 20 -------------------- source3/lib/conn_tdb.h | 3 --- 2 files changed, 23 deletions(-) diff --git a/source3/lib/conn_tdb.c b/source3/lib/conn_tdb.c index fb605e12ba1..c4690055bc0 100644 --- a/source3/lib/conn_tdb.c +++ b/source3/lib/conn_tdb.c @@ -110,26 +110,6 @@ static int conn_traverse_fn(struct db_record *rec, void *private_data) state->private_data); } -int connections_traverse(int (*fn)(struct db_record *rec, - void *private_data), - void *private_data) -{ - NTSTATUS status; - int count; - struct db_context *ctx = connections_db_ctx(False); - - if (ctx == NULL) { - return -1; - } - - status = dbwrap_traverse(ctx, fn, private_data, &count); - if (!NT_STATUS_IS_OK(status)) { - return -1; - } - - return count; -} - int connections_forall(int (*fn)(struct db_record *rec, const struct connections_key *key, const struct connections_data *data, diff --git a/source3/lib/conn_tdb.h b/source3/lib/conn_tdb.h index 9b63364d440..bf8add99319 100644 --- a/source3/lib/conn_tdb.h +++ b/source3/lib/conn_tdb.h @@ -51,9 +51,6 @@ struct db_record *connections_fetch_entry_ext(TALLOC_CTX *mem_ctx, struct server_id id, int cnum, const char *name); -int connections_traverse(int (*fn)(struct db_record *rec, - void *private_data), - void *private_data); int connections_forall(int (*fn)(struct db_record *rec, const struct connections_key *key, const struct connections_data *data, -- 2.11.4.GIT