From a47de4b2ab0b6f696816726a8f3cb336d6cc24dd Mon Sep 17 00:00:00 2001 From: Rubidium Date: Mon, 5 Jun 2023 17:15:20 +0200 Subject: [PATCH] Cleanup: remove DRAW_STRING_BUFFER constant --- src/gfx_func.h | 3 --- src/network/network_chat_gui.cpp | 4 ---- 2 files changed, 7 deletions(-) diff --git a/src/gfx_func.h b/src/gfx_func.h index 2d212c066c..9300b2cafd 100644 --- a/src/gfx_func.h +++ b/src/gfx_func.h @@ -82,9 +82,6 @@ void GameSizeChanged(); bool AdjustGUIZoom(bool automatic); void UndrawMouseCursor(); -/** Size of the buffer used for drawing strings. */ -static const int DRAW_STRING_BUFFER = 2048; - void RedrawScreenRect(int left, int top, int right, int bottom); void GfxScroll(int left, int top, int width, int height, int xo, int yo); diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp index 01aad5fb7a..ca196a4d2b 100644 --- a/src/network/network_chat_gui.cpp +++ b/src/network/network_chat_gui.cpp @@ -30,10 +30,6 @@ #include "../safeguards.h" -/** The draw buffer must be able to contain the chat message, client name and the "[All]" message, - * some spaces and possible translations of [All] to other languages. */ -static_assert((int)DRAW_STRING_BUFFER >= (int)NETWORK_CHAT_LENGTH + NETWORK_NAME_LENGTH + 40); - /** Spacing between chat lines. */ static const uint NETWORK_CHAT_LINE_SPACING = 3;