Get rid of str_contains()

We can use strchr() here.
This commit is contained in:
Michael Vetter
2020-11-02 18:52:25 +01:00
parent 90c4667e3b
commit 3d307fe341
3 changed files with 2 additions and 15 deletions

View File

@@ -163,18 +163,6 @@ str_replace(const char* string, const char* substr,
return newstr;
}
int
str_contains(const char str[], int size, char ch)
{
int i;
for (i = 0; i < size; i++) {
if (str[i] == ch)
return 1;
}
return 0;
}
gboolean
strtoi_range(char* str, int* saveptr, int min, int max, char** err_msg)
{