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

Commit 53d7d1b

Browse files
committed
Merge branch 'es/sh-i18n-envsubst'
* es/sh-i18n-envsubst: sh-i18n--envsubst: retire unused string_list_member()
2 parents 1ddb4d7 + 4825b80 commit 53d7d1b

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)