summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-03-21 12:50:39 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-03-21 12:50:39 -0700
commit53d7d1b129ba10bf29307b6f10690b843dfa4000 (patch)
treef602ca8fb9758d2f88d906f6d62dfb406d557bcc
parentMerge branch 'nd/upload-pack-shallow' (diff)
parentsh-i18n--envsubst: retire unused string_list_member() (diff)
downloadtgif-53d7d1b129ba10bf29307b6f10690b843dfa4000.tar.xz
Merge branch 'es/sh-i18n-envsubst'
* es/sh-i18n-envsubst: sh-i18n--envsubst: retire unused string_list_member()
-rw-r--r--sh-i18n--envsubst.c12
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)