Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 4825b80

Browse files
sunshinecogitster
authored andcommitted
sh-i18n--envsubst: retire unused string_list_member()
This static function has no callers, nor has it had any since its introduction in ba67aaf (git-sh-i18n--envsubst: our own envsubst(1) for eval_gettext(), 2011-05-14). Remove it. Signed-off-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2f93541 commit 4825b80

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

sh-i18n--envsubst.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -237,18 +237,6 @@ string_list_sort (string_list_ty *slp)
237237
qsort (slp->item, slp->nitems, sizeof (slp->item[0]), cmp_string);
238238
}
239239

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-
252240
/* Test whether a sorted string list contains a given string. */
253241
static int
254242
sorted_string_list_member (const string_list_ty *slp, const char *s)

0 commit comments

Comments
 (0)