From ed406caa712a2a13aaa5aa450f733569501c8947 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 18 Feb 2016 22:38:44 +0100 Subject: [PATCH] Remove unused variables from wxAuiMSWToolBarArt code No real changes, just remove the leftover variables to avoid warnings about unused variables from gcc. See https://github.com/wxWidgets/wxWidgets/pull/200 --- src/aui/barartmsw.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/aui/barartmsw.cpp b/src/aui/barartmsw.cpp index 9f541c45b2..68700ca832 100644 --- a/src/aui/barartmsw.cpp +++ b/src/aui/barartmsw.cpp @@ -257,7 +257,7 @@ void wxAuiMSWToolBarArt::DrawDropDownButton( int dropDownWidth = 14; int textWidth = 0, textHeight = 0, textX = 0, textY = 0; - int bmpX = 0, bmpY = 0, dropBmpX = 0, dropBmpY = 0; + int bmpX = 0, bmpY = 0; wxRect buttonRect = wxRect(rect.x, rect.y, @@ -313,14 +313,6 @@ void wxAuiMSWToolBarArt::DrawDropDownButton( &dropDownR, NULL); - dropBmpX = dropDownRect.x + - (dropDownRect.width / 2) - - (m_buttonDropDownBmp.GetWidth() / 2); - dropBmpY = dropDownRect.y + - (dropDownRect.height / 2) - - (m_buttonDropDownBmp.GetHeight() / 2); - - if ( m_textOrientation == wxAUI_TBTOOL_TEXT_BOTTOM ) { bmpX = buttonRect.x +