Remove a cache variable, which is no longer with the pango render engine.
This commit is contained in:
parent
d826e56664
commit
93631ffc11
2 changed files with 0 additions and 14 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue