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
This commit is contained in:
Vadim Zeitlin 2016-02-18 22:38:44 +01:00
parent f6268599f1
commit ed406caa71

View File

@ -257,7 +257,7 @@ void wxAuiMSWToolBarArt::DrawDropDownButton(
int dropDownWidth = 14; int dropDownWidth = 14;
int textWidth = 0, textHeight = 0, textX = 0, textY = 0; 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, wxRect buttonRect = wxRect(rect.x,
rect.y, rect.y,
@ -313,14 +313,6 @@ void wxAuiMSWToolBarArt::DrawDropDownButton(
&dropDownR, &dropDownR,
NULL); 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 ) if ( m_textOrientation == wxAUI_TBTOOL_TEXT_BOTTOM )
{ {
bmpX = buttonRect.x + bmpX = buttonRect.x +