From 878eb6af87ac0bafaa4727a56e8838d9f44ba6a3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 3 Oct 2019 02:11:04 +0200 Subject: [PATCH] Remove unused return value of wxDataViewColumn::WXUpdateWidth() The return value was never used, so just don't bother returning it. No real changes. --- include/wx/generic/dataview.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/include/wx/generic/dataview.h b/include/wx/generic/dataview.h index a2031d8b5f..d250d5bec6 100644 --- a/include/wx/generic/dataview.h +++ b/include/wx/generic/dataview.h @@ -69,10 +69,9 @@ public: virtual void SetWidth(int width) wxOVERRIDE { - // As a small optimization, use this method to avoid calling - // UpdateWidth() if the width didn't really change, even if we don't - // care about its return value. - (void)WXUpdateWidth(width); + // Call the actual update method, used for both automatic and "manual" + // width changes. + WXUpdateWidth(width); // Do remember the last explicitly set width: this is used to prevent // UpdateColumnSizes() from resizing the last column to be smaller than @@ -133,10 +132,10 @@ public: // This method is specific to the generic implementation and is used only // by wxWidgets itself. - bool WXUpdateWidth(int width) + void WXUpdateWidth(int width) { if ( width == m_width ) - return false; + return; // Normally we don't update it here as this method is called by // UpdateColumnSizes() which resizes the column automatically, and not @@ -149,8 +148,6 @@ public: m_width = width; UpdateWidth(); - - return true; } int WXGetManuallySetWidth() const { return m_manuallySetWidth; }