]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Remove deprecated str_append_n
authormichael.slusarz <michael.slusarz@open-xchange.com>
Wed, 8 Apr 2020 07:55:31 +0000 (07:55 +0000)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 8 Apr 2020 07:55:31 +0000 (07:55 +0000)
This causes error when compiling within C++, so easiest to remove as it
is already not being used anywhere

src/lib/str.h

index 3dc83208afc026f5a2140a0b6aae6c40ce3f9cef..fca3e6b0cbf9ffa57701c45cc5e1ec3aa5254a4b 100644 (file)
@@ -29,11 +29,6 @@ static inline size_t str_len(const string_t *str)
 /* Append NUL-terminated string. If the trailing NUL isn't found earlier,
    append a maximum of max_len characters. */
 void str_append_max(string_t *str, const char *cstr, size_t max_len);
-static inline void ATTR_DEPRECATED("Use str_append_max() or str_append_data() instead")
-str_append_n(string_t *str, const void *cstr, size_t max_len)
-{
-       str_append_max(str, cstr, max_len);
-}
 
 static inline void str_append(string_t *str, const char *cstr)
 {