summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2012-08-27 15:07:08 +0200
committerMichael Adam <obnox@samba.org>2012-10-19 12:14:59 +0200
commitd5c273919d129f884d5fb13e06ad73e01c7176e1 (patch)
treee66762bdbad86075d17b399e27f90f127705adc1 /source3
parent611e30ea233f0e5dab1439e930ea8544b85ca3b2 (diff)
downloadsamba-d5c273919d129f884d5fb13e06ad73e01c7176e1.tar.gz
samba-d5c273919d129f884d5fb13e06ad73e01c7176e1.tar.bz2
samba-d5c273919d129f884d5fb13e06ad73e01c7176e1.zip
s3:lib: remove unused function connections_traverse()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/conn_tdb.c20
-rw-r--r--source3/lib/conn_tdb.h3
2 files changed, 0 insertions, 23 deletions
diff --git a/source3/lib/conn_tdb.c b/source3/lib/conn_tdb.c
index fb605e12ba..c4690055bc 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 9b63364d44..bf8add9931 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,