From a99e147a5c6e337bdde6b76ea16b86622db56427 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 25 Mar 2012 23:33:43 +0000 Subject: [PATCH 1/1] remove unused variable git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/ribbon/toolbar.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ribbon/toolbar.cpp b/src/ribbon/toolbar.cpp index 6c6c8b7f5a..791da940ea 100644 --- a/src/ribbon/toolbar.cpp +++ b/src/ribbon/toolbar.cpp @@ -949,7 +949,6 @@ wxSize wxRibbonToolBar::GetBestSizeForParentSize(const wxSize& parentSize) const // Choose row count with largest possible area wxSize size = parentSize; - int row_count = m_nrows_max; wxOrientation major_axis = m_art->GetFlags() & wxRIBBON_BAR_FLOW_VERTICAL ? wxVERTICAL : wxHORIZONTAL; @@ -968,7 +967,6 @@ wxSize wxRibbonToolBar::GetBestSizeForParentSize(const wxSize& parentSize) const GetSizeInOrientation(m_sizes[i], major_axis) > area) { area = GetSizeInOrientation(m_sizes[i], major_axis); - row_count = m_nrows_min + i; bestSize = m_sizes[i]; } } -- 2.45.2