summaryrefslogtreecommitdiff
path: root/lib/param/loadparm.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-01-27 14:58:14 +1300
committerMichael Adam <obnox@samba.org>2014-01-30 01:21:11 +0100
commit0f119aa9c182b0e3be0808b924cf47f73c812ea6 (patch)
tree3c25d3cf2d8de4d63585fde07bbbbbb50f117453 /lib/param/loadparm.c
parentc813e91171b0a73ed79d4954563ed21d34baae8b (diff)
downloadsamba-0f119aa9c182b0e3be0808b924cf47f73c812ea6.tar.gz
lib/param: Remove unused lpcfg_next_parameter (once used by SWAT)
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'lib/param/loadparm.c')
-rw-r--r--lib/param/loadparm.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c
index e338352aff5..ae5f01cd38b 100644
--- a/lib/param/loadparm.c
+++ b/lib/param/loadparm.c
@@ -1931,58 +1931,6 @@ bool lpcfg_dump_a_parameter(struct loadparm_context *lp_ctx,
}
/**
- * Return info about the next parameter in a service.
- * snum==-1 gives the globals.
- * Return NULL when out of parameters.
- */
-
-
-struct parm_struct *lpcfg_next_parameter(struct loadparm_context *lp_ctx, int snum, int *i,
- int allparameters)
-{
- if (snum == -1) {
- /* do the globals */
- for (; parm_table[*i].label; (*i)++) {
- if ((*parm_table[*i].label == '-'))
- continue;
-
- if ((*i) > 0
- && (parm_table[*i].offset ==
- parm_table[(*i) - 1].offset)
- && (parm_table[*i].p_class ==
- parm_table[(*i) - 1].p_class))
- continue;
-
- return &parm_table[(*i)++];
- }
- } else {
- struct loadparm_service *pService = lp_ctx->services[snum];
-
- for (; parm_table[*i].label; (*i)++) {
- if (parm_table[*i].p_class == P_LOCAL &&
- (*parm_table[*i].label != '-') &&
- ((*i) == 0 ||
- (parm_table[*i].offset !=
- parm_table[(*i) - 1].offset)))
- {
- if (allparameters ||
- !lpcfg_equal_parameter(parm_table[*i].type,
- ((char *)pService) +
- parm_table[*i].offset,
- ((char *)lp_ctx->sDefault) +
- parm_table[*i].offset))
- {
- return &parm_table[(*i)++];
- }
- }
- }
- }
-
- return NULL;
-}
-
-
-/**
* Auto-load some home services.
*/
static void lpcfg_add_auto_services(struct loadparm_context *lp_ctx,