string-array: Drop unused parameter from STRING_ARRAY_INITIALIZER.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 10 Nov 2019 23:53:05 +0000 (23:53 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 2 Dec 2019 01:15:03 +0000 (01:15 +0000)
This macro had no users.

src/libpspp/string-array.h

index f3ec0423f7b3410cecbd0f5f6310645a962b7a79..36ad7383963d8ca7d23a80b8a820f4ecb8969de9 100644 (file)
@@ -32,9 +32,9 @@ struct string_array
 
 /* Suitable for use as the initializer for a string_array named ARRAY.  Typical
    usage:
-       struct string_array array = STRING_ARRAY_INITIALIZER (array);
+       struct string_array array = STRING_ARRAY_INITIALIZER;
    STRING_ARRAY_INITIALIZER is an alternative to calling string_array_init. */
-#define STRING_ARRAY_INITIALIZER(ARRAY) { NULL, 0, 0 }
+#define STRING_ARRAY_INITIALIZER { NULL, 0, 0 }
 
 void string_array_init (struct string_array *);
 void string_array_clone (struct string_array *, const struct string_array *);