Remove two unused functions

This commit is contained in:
Michael Steenbeek 2019-03-25 15:56:40 +01:00 committed by GitHub
parent d41822e0f5
commit cf913d1419
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 16 deletions

View File

@ -304,11 +304,6 @@ int32_t bitcount(uint32_t source)
return bitcount_fn(source);
}
bool strequals(const char* a, const char* b, int32_t length, bool caseInsensitive)
{
return caseInsensitive ? _strnicmp(a, b, length) == 0 : strncmp(a, b, length) == 0;
}
/* case insensitive compare */
int32_t strcicmp(char const* a, char const* b)
{
@ -482,15 +477,6 @@ char* safe_strcat_path(char* destination, const char* source, size_t size)
return safe_strcat(destination, source, size);
}
char* safe_strtrimleft(char* destination, const char* source, size_t size)
{
while (*source == ' ')
{
source++;
}
return safe_strcpy(destination, source, size);
}
#if defined(_WIN32)
char* strcasestr(const char* haystack, const char* needle)
{

View File

@ -37,14 +37,12 @@ bool avx2_available();
int32_t bitscanforward(int32_t source);
void bitcount_init();
int32_t bitcount(uint32_t source);
bool strequals(const char* a, const char* b, int32_t length, bool caseInsensitive);
int32_t strcicmp(char const* a, char const* b);
int32_t strlogicalcmp(char const* a, char const* b);
utf8* safe_strtrunc(utf8* text, size_t size);
char* safe_strcpy(char* destination, const char* source, size_t num);
char* safe_strcat(char* destination, const char* source, size_t size);
char* safe_strcat_path(char* destination, const char* source, size_t size);
char* safe_strtrimleft(char* destination, const char* source, size_t size);
#if defined(_WIN32)
char* strcasestr(const char* haystack, const char* needle);
#endif