summaryrefslogtreecommitdiffstats
path: root/source3/param
diff options
context:
space:
mode:
authorGarming Sam <garming@catalyst.net.nz>2014-07-09 12:25:36 +1200
committerMichael Adam <obnox@samba.org>2014-07-31 08:17:11 +0200
commit47f10ac65c2df3034ae5e943a396d86aa201667a (patch)
tree7ad52d2f644eea2aa8151e18e7daac8d6e380651 /source3/param
parent0796dc6fe009ec5305f1e748f00a1f305080e10d (diff)
downloadsamba-47f10ac65c2df3034ae5e943a396d86aa201667a.tar.gz
samba-47f10ac65c2df3034ae5e943a396d86aa201667a.tar.xz
samba-47f10ac65c2df3034ae5e943a396d86aa201667a.zip
param: remove lp_get_parameter
Ensure lpcfg_parm_struct, its counterpart is equivalent Change-Id: I127ce5d3cf7fe02ebf161aa011ec3b41bc32a656 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c16
-rw-r--r--source3/param/loadparm_ctx.c1
2 files changed, 0 insertions, 17 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 89d3fece21..dee6224655 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -2647,22 +2647,6 @@ bool dump_a_parameter(int snum, char *parm_name, FILE * f, bool isGlobal)
return result;
}
-/***************************************************************************
- Return info about the requested parameter (given as a string).
- Return NULL when the string is not a valid parameter name.
-***************************************************************************/
-
-struct parm_struct *lp_get_parameter(const char *param_name)
-{
- int num = lpcfg_map_parameter(param_name);
-
- if (num < 0) {
- return NULL;
- }
-
- return &parm_table[num];
-}
-
#if 0
/***************************************************************************
Display the contents of a single copy structure.
diff --git a/source3/param/loadparm_ctx.c b/source3/param/loadparm_ctx.c
index a8539d636a..8f1572fdaa 100644
--- a/source3/param/loadparm_ctx.c
+++ b/source3/param/loadparm_ctx.c
@@ -58,7 +58,6 @@ static bool lp_load_for_s4_ctx(const char *filename)
static struct loadparm_s3_helpers s3_fns =
{
- .get_parm_struct = lp_get_parameter,
.get_parm_ptr = lp_parm_ptr,
.get_service = lp_service_for_s4_ctx,
.get_servicebynum = lp_servicebynum_for_s4_ctx,