Remove unused return value of wxDataViewColumn::WXUpdateWidth()

The return value was never used, so just don't bother returning it.

No real changes.
This commit is contained in:
Vadim Zeitlin
2019-10-03 02:11:04 +02:00
parent 0c90ea40c3
commit 878eb6af87

View File

@@ -69,10 +69,9 @@ public:
virtual void SetWidth(int width) wxOVERRIDE virtual void SetWidth(int width) wxOVERRIDE
{ {
// As a small optimization, use this method to avoid calling // Call the actual update method, used for both automatic and "manual"
// UpdateWidth() if the width didn't really change, even if we don't // width changes.
// care about its return value. WXUpdateWidth(width);
(void)WXUpdateWidth(width);
// Do remember the last explicitly set width: this is used to prevent // Do remember the last explicitly set width: this is used to prevent
// UpdateColumnSizes() from resizing the last column to be smaller than // 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 // This method is specific to the generic implementation and is used only
// by wxWidgets itself. // by wxWidgets itself.
bool WXUpdateWidth(int width) void WXUpdateWidth(int width)
{ {
if ( width == m_width ) if ( width == m_width )
return false; return;
// Normally we don't update it here as this method is called by // Normally we don't update it here as this method is called by
// UpdateColumnSizes() which resizes the column automatically, and not // UpdateColumnSizes() which resizes the column automatically, and not
@@ -149,8 +148,6 @@ public:
m_width = width; m_width = width;
UpdateWidth(); UpdateWidth();
return true;
} }
int WXGetManuallySetWidth() const { return m_manuallySetWidth; } int WXGetManuallySetWidth() const { return m_manuallySetWidth; }