Remove pointless 'debugging support' in ssplit()
authorFabian Keil <fk@fabiankeil.de>
Fri, 8 Jun 2012 15:16:15 +0000 (15:16 +0000)
committerFabian Keil <fk@fabiankeil.de>
Fri, 8 Jun 2012 15:16:15 +0000 (15:16 +0000)
gdb offers the same information without recompiling.

ssplit.c

index b0da451..5db2d5c 100644 (file)
--- a/ssplit.c
+++ b/ssplit.c
@@ -1,4 +1,4 @@
-const char ssplit_rcs[] = "$Id: ssplit.c,v 1.13 2012/03/09 16:23:50 fabiankeil Exp $";
+const char ssplit_rcs[] = "$Id: ssplit.c,v 1.14 2012/06/08 15:15:11 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/ssplit.c,v $
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/ssplit.c,v $
@@ -43,10 +43,6 @@ const char ssplit_rcs[] = "$Id: ssplit.c,v 1.13 2012/03/09 16:23:50 fabiankeil E
 
 const char ssplit_h_rcs[] = SSPLIT_H_VERSION;
 
 
 const char ssplit_h_rcs[] = SSPLIT_H_VERSION;
 
-/* Define this for lots of debugging information to stdout */
-#undef SSPLIT_VERBOSE
-/* #define SSPLIT_VERBOSE 1 */
-
 
 /*********************************************************************
  *
 
 /*********************************************************************
  *
@@ -151,17 +147,6 @@ int ssplit(char *str, const char *delim, char *vec[], size_t vec_len)
    }
    *str = '\0';     /* null terminate the substring */
 
    }
    *str = '\0';     /* null terminate the substring */
 
-#ifdef SSPLIT_VERBOSE
-   {
-      int i;
-      printf("dump %d strings\n", vec_count);
-      for (i = 0; i < vec_count; i++)
-      {
-         printf("%d '%s'\n", i, vec[i]);
-      }
-   }
-#endif /* def SSPLIT_VERBOSE */
-
    return(vec_count);
 }
 
    return(vec_count);
 }