1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

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
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); 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 */ /* case insensitive compare */
int32_t strcicmp(char const* a, char const* b) 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); 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) #if defined(_WIN32)
char* strcasestr(const char* haystack, const char* needle) char* strcasestr(const char* haystack, const char* needle)
{ {

View File

@@ -37,14 +37,12 @@ bool avx2_available();
int32_t bitscanforward(int32_t source); int32_t bitscanforward(int32_t source);
void bitcount_init(); void bitcount_init();
int32_t bitcount(uint32_t source); 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 strcicmp(char const* a, char const* b);
int32_t strlogicalcmp(char const* a, char const* b); int32_t strlogicalcmp(char const* a, char const* b);
utf8* safe_strtrunc(utf8* text, size_t size); utf8* safe_strtrunc(utf8* text, size_t size);
char* safe_strcpy(char* destination, const char* source, size_t num); 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(char* destination, const char* source, size_t size);
char* safe_strcat_path(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) #if defined(_WIN32)
char* strcasestr(const char* haystack, const char* needle); char* strcasestr(const char* haystack, const char* needle);
#endif #endif