]> granicus.if.org Git - sysstat/commitdiff
common.c: Remove some dead code
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 6 Feb 2021 17:28:02 +0000 (18:28 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 6 Feb 2021 17:28:02 +0000 (18:28 +0100)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
common.c

index 92c3bf4ff95c51e082eb0923d22791e38db6ee27..af022243ba41960d0fada997df25c1412a8e64df 100644 (file)
--- 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.