(libretro-common) stdstring - get rid of these pointless functions

This commit is contained in:
libretroadmin 2024-09-05 11:44:57 +02:00
parent 8491aaf659
commit 4b86886d30
2 changed files with 0 additions and 16 deletions

View File

@ -314,10 +314,6 @@ unsigned string_to_unsigned(const char *str);
**/
unsigned string_hex_to_unsigned(const char *str);
char *string_init(const char *src);
void string_set(char **string, const char *src);
/**
* string_count_occurrences_single_character:
*

View File

@ -48,18 +48,6 @@ const uint8_t lr_char_props[256] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* Fx */
};
char *string_init(const char *src)
{
return src ? strdup(src) : NULL;
}
void string_set(char **string, const char *src)
{
free(*string);
*string = string_init(src);
}
char *string_to_upper(char *s)
{
char *cs = (char *)s;