From 9eea5cae23af8dce2e6c974204938a8378ff1f21 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 7 Dec 2018 04:00:35 +0100 Subject: [PATCH] Make RowRanges::GetSize() inline No real changes. --- include/wx/generic/private/rowheightcache.h | 8 +++++++- src/generic/rowheightcache.cpp | 6 ------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/wx/generic/private/rowheightcache.h b/include/wx/generic/private/rowheightcache.h index d9586f16e7..23dbcbbd1b 100644 --- a/include/wx/generic/private/rowheightcache.h +++ b/include/wx/generic/private/rowheightcache.h @@ -56,7 +56,13 @@ public: not including given row. */ unsigned int CountTo(unsigned int row) const; - unsigned int GetSize() const; // for debugging statistics + + /** + Returns the size of the range. + + This is only used for testing and debugging. + */ + unsigned int GetSize() const { return m_ranges.size(); } private: wxVector m_ranges; diff --git a/src/generic/rowheightcache.cpp b/src/generic/rowheightcache.cpp index c5fa2b665b..5168b86622 100644 --- a/src/generic/rowheightcache.cpp +++ b/src/generic/rowheightcache.cpp @@ -191,12 +191,6 @@ unsigned int RowRanges::CountTo(unsigned int row) const return ctr; } -unsigned int RowRanges::GetSize() const // for debugging statistics -{ - return m_ranges.size(); -} - - // ---------------------------------------------------------------------------- // HeightCache // ----------------------------------------------------------------------------