Skip to content

Commit af4dcf9

Browse files
committed
Remove unused function array_contains() from 'tools' module
1 parent a57b6dd commit af4dcf9

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/tools.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -596,22 +596,6 @@ void analyze_line_ascii(input_t *input_ptr, line_t *line)
596596

597597

598598

599-
int array_contains(char **array, const size_t array_len, const char *s)
600-
{
601-
int result = 0;
602-
if (array != NULL && array_len > 0) {
603-
for (size_t i = 0; i < array_len; ++i) {
604-
if (strcmp(array[i], s) == 0) {
605-
result = 1;
606-
break;
607-
}
608-
}
609-
}
610-
return result;
611-
}
612-
613-
614-
615599
int array_contains0(char **array, const char *s)
616600
{
617601
int result = 0;

src/tools.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,6 @@ size_t count_invisible_chars(const uint32_t *s, size_t *num_esc, char **ascii, s
166166
int is_csi_reset(const uint32_t *csi);
167167

168168

169-
int array_contains(char **array, const size_t array_len, const char *s);
170-
171-
172169
/**
173170
* Determine if the given `array` contains the given string (case-insensitive!).
174171
* @param array an array of strings to search

0 commit comments

Comments
 (0)