@@ -367,7 +367,6 @@ void ListBox::SetImagesSize(sf::Vector2f size) {
367367}
368368
369369float 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