X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0cd159592e4d9c979aa5a626627cdd9158fcc34f..8584b0e64b273273bad122d28b10176bd5a3bc84:/src/osx/carbon/statbrma.cpp?ds=sidebyside diff --git a/src/osx/carbon/statbrma.cpp b/src/osx/carbon/statbrma.cpp index a1f4cb28f6..a23e9180ac 100644 --- a/src/osx/carbon/statbrma.cpp +++ b/src/osx/carbon/statbrma.cpp @@ -70,7 +70,7 @@ bool wxStatusBarMac::Create(wxWindow *parent, wxWindowID id, return true; } -void wxStatusBarMac::DrawFieldText(wxDC& dc, const wxRect& rect, int i, int textHeight) +void wxStatusBarMac::DrawFieldText(wxDC& dc, const wxRect& rect, int i, int WXUNUSED(textHeight)) { int w, h; GetSize( &w , &h ); @@ -102,19 +102,8 @@ void wxStatusBarMac::DrawField(wxDC& dc, int i, int textHeight) DrawFieldText(dc, rect, i, textHeight); } -void wxStatusBarMac::SetStatusText(const wxString& text, int number) +void wxStatusBarMac::DoUpdateStatusText(int number) { - // NOTE: seems this function is identic to wxStatusBarGeneric::SetStatusText; - // probably can be removed without problems (FM) - - wxCHECK_RET( (number >= 0) && ((size_t)number < m_panes.GetCount()), - wxT("invalid status bar field index") ); - - if ( GetStatusText(number) == text ) - return; - - wxStatusBarGeneric::SetStatusText(text, number); - wxRect rect; GetFieldRect(number, rect);