Skip to content

Commit

Permalink
Merge branch 'es/sh-i18n-envsubst'
Browse files Browse the repository at this point in the history
* es/sh-i18n-envsubst:
  sh-i18n--envsubst: retire unused string_list_member()
  • Loading branch information
Junio C Hamano committed Mar 21, 2014
2 parents 1ddb4d7 + 4825b80 commit 53d7d1b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions sh-i18n--envsubst.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 53d7d1b

Please sign in to comment.