s3:lib: remove unused function connections_traverse()
authorGregor Beck <gbeck@sernet.de>
Mon, 27 Aug 2012 13:07:08 +0000 (15:07 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 19 Oct 2012 10:14:59 +0000 (12:14 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
source3/lib/conn_tdb.c
source3/lib/conn_tdb.h

index fb605e12ba11fb100faf731a9ffcf8850f6eaa73..c4690055bc025294087a93b368113daca0afa9e1 100644 (file)
@@ -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,
index 9b63364d440307bf00b9e68deda0f34ed3667da1..bf8add99319272341e4722fcb950c5046e693786 100644 (file)
@@ -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,