From 5af3bbf971754925d6f574f37ee3d6e2a2240833 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 21 Jul 2019 22:51:11 +0100 Subject: [PATCH] Fix compile errors --- src/openrct2/localisation/Localisation.cpp | 20 -------------------- 1 file changed, 20 deletions(-) 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;