mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-24 07:24:31 +08:00
Remove unused functions/templates
This commit is contained in:
@@ -254,28 +254,6 @@ WaitForEventAt(
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
namespace Catch
|
||||
{
|
||||
|
||||
template <> struct StringMaker<TestableGrid>
|
||||
{
|
||||
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<Multicell>
|
||||
{
|
||||
static std::string convert(const Multicell& multi)
|
||||
{
|
||||
return multi.ToString().ToStdString();
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace Catch
|
||||
|
||||
class GridTestCase
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user