Skip to content

Commit

Permalink
(libretro-common) stdstring - get rid of these pointless functions
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Sep 5, 2024
1 parent 8491aaf commit 4b86886
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
4 changes: 0 additions & 4 deletions libretro-common/include/string/stdstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
*
Expand Down
12 changes: 0 additions & 12 deletions libretro-common/string/stdstring.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4b86886

Please sign in to comment.