]> git.ipfire.org Git - thirdparty/git.git/commitdiff
sh-i18n--envsubst: retire unused string_list_member()
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 11 Mar 2014 22:46:44 +0000 (18:46 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Mar 2014 22:04:55 +0000 (15:04 -0700)
This static function has no callers, nor has it had any since its
introduction in ba67aaf2d05d (git-sh-i18n--envsubst: our own envsubst(1)
for eval_gettext(), 2011-05-14). Remove it.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sh-i18n--envsubst.c

index 5ddd6886c85356164e81c477d3a170343bc28049..855d28cf9440aba175489b63e5d24665126faf2a 100644 (file)
@@ -237,18 +237,6 @@ string_list_sort (string_list_ty *slp)
     qsort (slp->item, slp->nitems, sizeof (slp->item[0]), cmp_string);
 }
 
-/* Test whether a string list contains a given string.  */
-static inline int
-string_list_member (const string_list_ty *slp, const char *s)
-{
-  size_t j;
-
-  for (j = 0; j < slp->nitems; ++j)
-    if (strcmp (slp->item[j], s) == 0)
-      return 1;
-  return 0;
-}
-
 /* Test whether a sorted string list contains a given string.  */
 static int
 sorted_string_list_member (const string_list_ty *slp, const char *s)