mirror of
https://github.com/ascii-boxes/boxes.git
synced 2024-12-12 18:01:14 +01:00
Remove unused function array_contains() from 'tools' module
This commit is contained in:
parent
a71e1b875c
commit
00fdedd302
16
src/tools.c
16
src/tools.c
@ -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;
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user