From 387ea1468c52ae66eda9c7ef8a57983ca14a541c Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Sat, 6 Feb 2021 18:28:02 +0100 Subject: [PATCH] common.c: Remove some dead code Signed-off-by: Sebastien GODARD --- common.c | 31 ------------------------------- 1 file changed, 31 deletions(-) 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. -- 2.50.1