summaryrefslogtreecommitdiffstats
path: root/source3/param
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-01-27 14:58:21 +1300
committerMichael Adam <obnox@samba.org>2014-01-30 01:21:26 +0100
commit02d60cd028e2d33b591056b8b07b2fc9b9c262b1 (patch)
treeeaad7893c6489eb57e29ba38c22b20dd01fc5e32 /source3/param
parent0f119aa9c182b0e3be0808b924cf47f73c812ea6 (diff)
downloadsamba-02d60cd028e2d33b591056b8b07b2fc9b9c262b1.tar.gz
samba-02d60cd028e2d33b591056b8b07b2fc9b9c262b1.tar.xz
samba-02d60cd028e2d33b591056b8b07b2fc9b9c262b1.zip
param: Remove unused lp_next_parameter (once used by SWAT)
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c59
1 files changed, 0 insertions, 59 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index b90eee50d34..d71a8a0bded 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -3673,65 +3673,6 @@ struct parm_struct *lp_get_parameter(const char *param_name)
return &parm_table[num];
}
-/***************************************************************************
- Return info about the next parameter in a service.
- snum==GLOBAL_SECTION_SNUM gives the globals.
- Return NULL when out of parameters.
-***************************************************************************/
-
-struct parm_struct *lp_next_parameter(int snum, int *i, int allparameters)
-{
- if (snum < 0) {
- /* do the globals */
- for (; parm_table[*i].label; (*i)++) {
- if (parm_table[*i].p_class == P_SEPARATOR)
- return &parm_table[(*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;
-
- if (is_default(*i) && !allparameters)
- continue;
-
- return &parm_table[(*i)++];
- }
- } else {
- struct loadparm_service *pService = ServicePtrs[snum];
-
- for (; parm_table[*i].label; (*i)++) {
- if (parm_table[*i].p_class == P_SEPARATOR)
- return &parm_table[(*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,
- lp_parm_ptr(pService,
- &parm_table[*i]),
- lp_parm_ptr(NULL,
- &parm_table[*i])))
- {
- return &parm_table[(*i)++];
- }
- }
- }
- }
-
- return NULL;
-}
-
-
#if 0
/***************************************************************************
Display the contents of a single copy structure.