summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-05-16 22:26:00 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-05-18 16:12:08 +0200
commitb3258addb4bc861d8d0cf8842397c209ec2d3704 (patch)
treeb121910bd627b16faa195785cdecba2e9999a5a3 /source3/param
parentc6cc22adc059aeb6de50305b8a40d513d8f05bbc (diff)
downloadsamba-b3258addb4bc861d8d0cf8842397c209ec2d3704.tar.gz
samba-b3258addb4bc861d8d0cf8842397c209ec2d3704.tar.bz2
samba-b3258addb4bc861d8d0cf8842397c209ec2d3704.zip
s3-param: remove unused share_iterator functions
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index e245ecf594..b80c31bedf 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -9775,54 +9775,6 @@ struct share_params *get_share_params(TALLOC_CTX *mem_ctx,
return result;
}
-struct share_iterator *share_list_all(TALLOC_CTX *mem_ctx)
-{
- struct share_iterator *result;
-
- if (!(result = TALLOC_P(mem_ctx, struct share_iterator))) {
- DEBUG(0, ("talloc failed\n"));
- return NULL;
- }
-
- result->next_id = 0;
- return result;
-}
-
-struct share_params *next_share(struct share_iterator *list)
-{
- struct share_params *result;
-
- while (!lp_snum_ok(list->next_id) &&
- (list->next_id < lp_numservices())) {
- list->next_id += 1;
- }
-
- if (list->next_id >= lp_numservices()) {
- return NULL;
- }
-
- if (!(result = TALLOC_P(list, struct share_params))) {
- DEBUG(0, ("talloc failed\n"));
- return NULL;
- }
-
- result->service = list->next_id;
- list->next_id += 1;
- return result;
-}
-
-struct share_params *next_printer(struct share_iterator *list)
-{
- struct share_params *result;
-
- while ((result = next_share(list)) != NULL) {
- if (lp_print_ok(result->service)) {
- break;
- }
- }
- return result;
-}
-
/*
* This is a hack for a transition period until we transformed all code from
* service numbers to struct share_params.