sh-i18n--envsubst: retire unused string_list_member()

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>

Eric Sunshine committed Mar 11, 2014 at 18:46 UTC 4825b80ef9a8a407025748e51525787abd69bde0
1 file changed -12
sh-i18n--envsubst.c
-12
@@ -237,18 +237,6 @@ string_list_sort (string_list_ty *slp)
237 qsort (slp->item, slp->nitems, sizeof (slp->item[0]), cmp_string);
238 }
239
240 -/* Test whether a string list contains a given string. */
241 -static inline int
242 -string_list_member (const string_list_ty *slp, const char *s)
243 -{
244 - size_t j;
245 -
246 - for (j = 0; j < slp->nitems; ++j)
247 - if (strcmp (slp->item[j], s) == 0)
248 - return 1;
249 - return 0;
250 -}
251 -
240 /* Test whether a sorted string list contains a given string. */
241 static int
242 sorted_string_list_member (const string_list_ty *slp, const char *s)