tweaks: remove a now-unused helper function

master
Benno Schulenberg 2020-02-13 18:55:33 +01:00
parent d13b6d6896
commit a9f7277b1b
2 changed files with 0 additions and 13 deletions

View File

@ -44,18 +44,6 @@ bool using_utf8(void)
}
#endif /* ENABLE_UTF8 */
/* Concatenate two allocated strings, and free the second. */
char *addstrings(char* str1, size_t len1, char* str2, size_t len2)
{
str1 = charealloc(str1, len1 + len2 + 1);
str1[len1] = '\0';
strncat(&str1[len1], str2, len2);
free(str2);
return str1;
}
/* This function is equivalent to isalpha() for multibyte characters. */
bool is_alpha_mbchar(const char *c)
{

View File

@ -203,7 +203,6 @@ char *strip_last_component(const char *path);
void utf8_init(void);
bool using_utf8(void);
#endif
char *addstrings(char* str1, size_t len1, char* str2, size_t len2);
bool is_alpha_mbchar(const char *c);
bool is_blank_mbchar(const char *c);
bool is_cntrl_mbchar(const char *c);