From 93631ffc112f13a59215ef9d9ae891b8ab451ff4 Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Wed, 13 Aug 2008 17:44:21 +0000 Subject: [PATCH] Remove a cache variable, which is no longer with the pango render engine. --- src/gui/widgets/control.cpp | 5 ----- src/gui/widgets/control.hpp | 9 --------- 2 files changed, 14 deletions(-) diff --git a/src/gui/widgets/control.cpp b/src/gui/widgets/control.cpp index 192abdf3dc9..a33c5b0a352 100644 --- a/src/gui/widgets/control.cpp +++ b/src/gui/widgets/control.cpp @@ -44,7 +44,6 @@ tcontrol::tcontrol(const unsigned canvas_count) : visible_(true), label_(), multiline_label_(false), - wrapped_label_(), tooltip_(), help_message_(), canvas_(canvas_count), @@ -185,9 +184,6 @@ void tcontrol::set_size(const SDL_Rect& rect) canvas.set_height(rect.h); } - // clear the cache. - wrapped_label_.clear(); - // inherited twidget::set_size(rect); } @@ -199,7 +195,6 @@ void tcontrol::set_label(const t_string& label) } label_ = label; - wrapped_label_.clear(); set_canvas_text(); set_dirty(); } diff --git a/src/gui/widgets/control.hpp b/src/gui/widgets/control.hpp index ad755abe35f..174a08c88e5 100644 --- a/src/gui/widgets/control.hpp +++ b/src/gui/widgets/control.hpp @@ -206,15 +206,6 @@ private: */ bool multiline_label_; - /** - * Contains the wrapped text for a multiline label. - * - * This is a cache which contains the translated label text with extra line - * endings. The extra line endings are determined in the sizing code and - * which text will be rendered in the end. - */ - std::string wrapped_label_; - /** * Tooltip text. *