Skip to content

Commit

Permalink
Fix build with -Werror=unused-variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkive committed May 19, 2018
1 parent c68a7ba commit a388c2d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/gui/widgets/listbox.cpp
Expand Up @@ -678,8 +678,6 @@ void listbox::layout_children(const bool force)
assert(content_grid());

if(need_layout_ || force) {
const int selected_item = generator_->get_selected_item();

content_grid()->place(content_grid()->get_origin(), content_grid()->get_size());

const SDL_Rect& visible = content_visible_area_;
Expand Down

0 comments on commit a388c2d

Please sign in to comment.