Removed unused function gui2::tlistbox::update_content_size.

This commit is contained in:
Guillaume Melquiond 2010-11-07 15:53:01 +00:00
parent f5dfd9afb7
commit 0bf47fbc2b
2 changed files with 0 additions and 35 deletions

View File

@ -234,25 +234,6 @@ void tlistbox::list_item_clicked(twidget* caller)
assert(false);
}
bool tlistbox::update_content_size()
{
if(get_visible() == twidget::INVISIBLE) {
return true;
}
if(get_size() == tpoint(0, 0)) {
return false;
}
if(content_resize_request(true)) {
content_grid_->set_visible_area(content_visible_area());
set_dirty();
return true;
}
return false;
}
void tlistbox::place(const tpoint& origin, const tpoint& size)
{
// Inherited.

View File

@ -179,22 +179,6 @@ public:
// { state_ = active ? ENABLED : DISABLED; }
//
/**
* Request to update the size of the content after changing the content.
*
* When a resize is required the container first can try to handle it
* itself. If it can't honour the request the function will call @ref
* twindow::invalidate_layout().
*
* @note Calling this function on a widget with size == (0, 0) results
* false but doesn't call invalidate_layout, the engine expects to be in
* build up phase with the layout already invalidated.
*
* @returns True if the resizing succeeded, false
* otherwise.
*/
bool update_content_size();
/***** ***** ***** ***** inherited ***** ***** ****** *****/
/** Inherited from tscrollbar_container. */