From 4b6e3f86c27bedb1ed2a943c5939fa3d7e72bea6 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Sun, 21 Jul 2024 08:18:09 +0100 Subject: [PATCH] Cleanup: Remove write-only flag_offset member from server list. (#12872) A remnant of language flags, removed from the server list long ago. --- src/network/network_gui.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 9525ececba..bc9f6b6862 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -195,7 +195,6 @@ protected: int lock_offset; ///< Left offset for lock icon. int blot_offset; ///< Left offset for green/yellow/red compatibility icon. - int flag_offset; ///< Left offset for language flag icon. /** * (Re)build the GUI network game list (a.k.a. this->servers) as some @@ -472,7 +471,6 @@ public: { this->lock_offset = ScaleGUITrad(5); this->blot_offset = this->lock_offset + ScaleGUITrad(3) + GetSpriteSize(SPR_LOCK).width; - this->flag_offset = this->blot_offset + ScaleGUITrad(2) + GetSpriteSize(SPR_BLOT).width; } void UpdateWidgetSize(WidgetID widget, Dimension &size, [[maybe_unused]] const Dimension &padding, [[maybe_unused]] Dimension &fill, [[maybe_unused]] Dimension &resize) override