Remove unused function array_contains() from 'tools' module

This commit is contained in:
Thomas Jensen 2024-09-28 14:49:01 +02:00
parent a71e1b875c
commit 00fdedd302
No known key found for this signature in database
GPG Key ID: A4ACEE270D0FB7DB
2 changed files with 0 additions and 19 deletions

View File

@ -596,22 +596,6 @@ void analyze_line_ascii(input_t *input_ptr, line_t *line)
int array_contains(char **array, const size_t array_len, const char *s)
{
int result = 0;
if (array != NULL && array_len > 0) {
for (size_t i = 0; i < array_len; ++i) {
if (strcmp(array[i], s) == 0) {
result = 1;
break;
}
}
}
return result;
}
int array_contains0(char **array, const char *s) int array_contains0(char **array, const char *s)
{ {
int result = 0; int result = 0;

View File

@ -166,9 +166,6 @@ size_t count_invisible_chars(const uint32_t *s, size_t *num_esc, char **ascii, s
int is_csi_reset(const uint32_t *csi); int is_csi_reset(const uint32_t *csi);
int array_contains(char **array, const size_t array_len, const char *s);
/** /**
* Determine if the given `array` contains the given string (case-insensitive!). * Determine if the given `array` contains the given string (case-insensitive!).
* @param array an array of strings to search * @param array an array of strings to search