From 53e050bfc59ceff010d3e2801e8e8987a595af51 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 16 Jul 2026 16:07:00 -0700 Subject: [PATCH] Remove unused functions/templates --- tests/controls/gridtest.cpp | 22 ---------------------- tests/datetime/datetimetest.cpp | 28 ---------------------------- tests/lists/lists.cpp | 2 -- 3 files changed, 52 deletions(-) diff --git a/tests/controls/gridtest.cpp b/tests/controls/gridtest.cpp index e28c6f55cf..e12d9dbe88 100644 --- a/tests/controls/gridtest.cpp +++ b/tests/controls/gridtest.cpp @@ -254,28 +254,6 @@ WaitForEventAt( } // anonymous namespace -namespace Catch -{ - -template <> struct StringMaker -{ - static std::string convert(const TestableGrid& grid) - { - return ("Content before edit:\n" + grid.m_beforeGridAnnotated - + "\nContent after edit:\n" + grid.ToString()).ToStdString(); - } -}; - -template <> struct StringMaker -{ - static std::string convert(const Multicell& multi) - { - return multi.ToString().ToStdString(); - } -}; - -} // namespace Catch - class GridTestCase { public: diff --git a/tests/datetime/datetimetest.cpp b/tests/datetime/datetimetest.cpp index e54dd91a17..925ffb6450 100644 --- a/tests/datetime/datetimetest.cpp +++ b/tests/datetime/datetimetest.cpp @@ -293,34 +293,6 @@ TEST_CASE("wxDateTime::WDays", "[datetime]") wxDateTime::WeekDay wday; // the weekday wxDateTime::Month month; // the month int year; // and the year - - wxString Format() const - { - wxString s, which; - switch ( nWeek < -1 ? -nWeek : nWeek ) - { - case 1: which = wxT("first"); break; - case 2: which = wxT("second"); break; - case 3: which = wxT("third"); break; - case 4: which = wxT("fourth"); break; - case 5: which = wxT("fifth"); break; - - case -1: which = wxT("last"); break; - } - - if ( nWeek < -1 ) - { - which += wxT(" from end"); - } - - s.Printf(wxT("The %s %s of %s in %d"), - which.c_str(), - wxDateTime::GetWeekDayName(wday).c_str(), - wxDateTime::GetMonthName(month).c_str(), - year); - - return s; - } }; // the array data was generated by the following python program diff --git a/tests/lists/lists.cpp b/tests/lists/lists.cpp index 4f07431396..f7336667c3 100644 --- a/tests/lists/lists.cpp +++ b/tests/lists/lists.cpp @@ -37,8 +37,6 @@ public: static size_t GetNumber() { return ms_bars; } - const wxChar *GetName() const { return m_name.c_str(); } - private: wxString m_name;