From: Sebastien GODARD Date: Sat, 6 Feb 2021 17:28:02 +0000 (+0100) Subject: common.c: Remove some dead code X-Git-Tag: v12.5.3~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=387ea1468c52ae66eda9c7ef8a57983ca14a541c;p=sysstat common.c: Remove some dead code Signed-off-by: Sebastien GODARD --- diff --git a/common.c b/common.c index 92c3bf4..af02224 100644 --- a/common.c +++ b/common.c @@ -433,37 +433,6 @@ int check_dir(char *dirname) #ifndef SOURCE_SADC -/* - *************************************************************************** - * Count number of comma-separated values in arguments list. For example, - * the number will be 3 for the list "foobar -p 1 -p 2,3,4 2 5". - * - * IN: - * @arg_c Number of arguments in the list. - * @arg_v Arguments list. - * - * RETURNS: - * Number of comma-separated values in the list. - *************************************************************************** - */ -int count_csvalues(int arg_c, char **arg_v) -{ - int opt = 1; - int nr = 0; - char *t; - - while (opt < arg_c) { - if (strchr(arg_v[opt], ',')) { - for (t = arg_v[opt]; t; t = strchr(t + 1, ',')) { - nr++; - } - } - opt++; - } - - return nr; -} - /* *************************************************************************** * Read /proc/devices file and get device-mapper major number.