diff --git a/src/chars.c b/src/chars.c index 23fbba49..06369e64 100644 --- a/src/chars.c +++ b/src/chars.c @@ -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) { diff --git a/src/proto.h b/src/proto.h index c4204d56..0dc94af7 100644 --- a/src/proto.h +++ b/src/proto.h @@ -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);