From 4a86b693fd14ec9d156b8285a625b7c6e0e690ef Mon Sep 17 00:00:00 2001 From: Garming Sam Date: Tue, 18 Feb 2014 10:24:59 +1300 Subject: param: remove lp_string_is_valid_boolean This call is never made in the code and should in fact crash if it was ever called with a valid boolean Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett Reviewed-on: https://gerrit.samba.org/106 Reviewed-by: Andreas Schneider Reviewed-by: Jeremy Allison --- source3/param/loadparm.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'source3/param/loadparm.c') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index efaa93b237..fdc4d52eeb 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -2040,15 +2040,6 @@ void show_parameter_list(void) } } -/*************************************************************************** - Check if a given string correctly represents a boolean value. -***************************************************************************/ - -bool lp_string_is_valid_boolean(const char *parm_value) -{ - return set_boolean(parm_value, NULL); -} - /*************************************************************************** Get the standard string representation of a boolean value ("yes" or "no") ***************************************************************************/ -- cgit