diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2014-03-11 18:46:44 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-03-12 15:04:55 -0700 |
commit | 4825b80ef9a8a407025748e51525787abd69bde0 (patch) | |
tree | cd891deb962ecda90d75d60877deb85899bc8f86 /sh-i18n--envsubst.c | |
parent | 2f93541d88fadd1ff5307d81c2c8921ee3eea058 (diff) | |
download | git-4825b80ef9a8a407025748e51525787abd69bde0.tar.gz |
sh-i18n--envsubst: retire unused string_list_member()es/sh-i18n-envsubst
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>
Diffstat (limited to 'sh-i18n--envsubst.c')
-rw-r--r-- | sh-i18n--envsubst.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sh-i18n--envsubst.c b/sh-i18n--envsubst.c index 5ddd6886c8..855d28cf94 100644 --- a/sh-i18n--envsubst.c +++ b/sh-i18n--envsubst.c @@ -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) |