summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-01-27 15:00:02 +1300
committerMichael Adam <obnox@samba.org>2014-01-30 01:21:49 +0100
commitebb04f4037cc80df7a71c4d08184f8e9a8c60cdc (patch)
treea02dce87b0bb34373072db03bf6e6095b9963a13 /source3
parent02d60cd028e2d33b591056b8b07b2fc9b9c262b1 (diff)
downloadsamba-ebb04f4037cc80df7a71c4d08184f8e9a8c60cdc.tar.gz
param: Remove unused lp_is_default (once used by SWAT)
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/param/loadparm.c11
2 files changed, 0 insertions, 12 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 8585e911ff6..9024f6b3b85 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1050,7 +1050,6 @@ void *lp_local_ptr_by_snum(int snum, struct parm_struct *parm);
bool lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue);
bool lp_set_cmdline(const char *pszParmName, const char *pszParmValue);
bool lp_set_option(const char *option);
-bool lp_is_default(int snum, struct parm_struct *parm);
bool dump_a_parameter(int snum, char *parm_name, FILE * f, bool isGlobal);
struct parm_struct *lp_get_parameter(const char *param_name);
bool lp_snum_ok(int iService);
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index d71a8a0bded..0e69be94e18 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -3556,17 +3556,6 @@ static void dump_globals(FILE *f)
}
/***************************************************************************
- Return true if a local parameter is currently set to the global default.
-***************************************************************************/
-
-bool lp_is_default(int snum, struct parm_struct *parm)
-{
- return lpcfg_equal_parameter(parm->type,
- lp_parm_ptr(ServicePtrs[snum], parm),
- lp_parm_ptr(NULL, parm));
-}
-
-/***************************************************************************
Display the contents of a single services record.
***************************************************************************/