Skip to content

Commit ca48d16

Browse files
Fix warnings in ListBox.cpp
1 parent 1253694 commit ca48d16

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/SFGUI/ListBox.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,6 @@ void ListBox::SetImagesSize(sf::Vector2f size) {
367367
}
368368

369369
float ListBox::GetItemHeight() const {
370-
auto text_padding = Context::Get().GetEngine().GetProperty<float>( "Padding", shared_from_this() );
371370
const auto& font_name = Context::Get().GetEngine().GetProperty<std::string>( "FontName", shared_from_this() );
372371
const auto& font = Context::Get().GetEngine().GetResourceManager().GetFont( font_name );
373372
auto font_size = Context::Get().GetEngine().GetProperty<unsigned int>( "FontSize", shared_from_this() );
@@ -462,7 +461,6 @@ ListBox::IndexType ListBox::GetItemAt( float y ) const {
462461
auto border_width = Context::Get().GetEngine().GetProperty<float>( "BorderWidth", shared_from_this() );
463462
const auto& font_name = Context::Get().GetEngine().GetProperty<std::string>( "FontName", shared_from_this() );
464463
const auto& font = Context::Get().GetEngine().GetResourceManager().GetFont( font_name );
465-
auto font_size = Context::Get().GetEngine().GetProperty<unsigned int>( "FontSize", shared_from_this() );
466464
auto line_height = GetItemHeight();
467465

468466
IndexType item_index = 0;
@@ -516,7 +514,6 @@ void ListBox::UpdateDisplayedItems() {
516514
auto border_width = Context::Get().GetEngine().GetProperty<float>( "BorderWidth", shared_from_this() );
517515
const auto& font_name = Context::Get().GetEngine().GetProperty<std::string>( "FontName", shared_from_this() );
518516
const auto& font = Context::Get().GetEngine().GetResourceManager().GetFont( font_name );
519-
auto font_size = Context::Get().GetEngine().GetProperty<unsigned int>( "FontSize", shared_from_this() );
520517
auto line_height = GetItemHeight();
521518

522519
// Update the displayed items count.

0 commit comments

Comments
 (0)