diff --git a/src/openrct2/localisation/Localisation.cpp b/src/openrct2/localisation/Localisation.cpp index bb5472c864..ef881fee36 100644 --- a/src/openrct2/localisation/Localisation.cpp +++ b/src/openrct2/localisation/Localisation.cpp @@ -386,26 +386,6 @@ static void format_append_string(char** dest, size_t* size, const utf8* string) } } -[[maybe_unused]] void format_append_string_n(char** dest, size_t* size, const utf8* string, size_t maxlen) -{ - if ((*size) == 0) - return; - size_t length = std::min(maxlen, strlen(string)); - if (length < (*size)) - { - std::memcpy((*dest), string, length); - (*dest) += length; - (*size) -= length; - } - else - { - std::memcpy((*dest), string, (*size) - 1); - (*dest) += (*size) - 1; - *(*dest)++ = '\0'; - (*size) = 0; - } -} - static void format_integer(char** dest, size_t* size, int64_t value) { int32_t digit;