Remove unused wxGridCellDateTimeRenderer::m_dateDef

This has apparently never been really used ever since it was added in
d10f4bf950 (applied tons of wxGrid patches, 2001-05-27).
This commit is contained in:
Vadim Zeitlin
2020-11-03 03:09:17 +01:00
parent 705006615f
commit cced297b26
2 changed files with 2 additions and 5 deletions

View File

@@ -222,8 +222,7 @@ public:
wxGridCellDateTimeRenderer(const wxGridCellDateTimeRenderer& other)
: wxGridCellDateRenderer(other),
m_iformat(other.m_iformat),
m_dateDef(other.m_dateDef)
m_iformat(other.m_iformat)
{
}
@@ -233,7 +232,6 @@ protected:
virtual bool Parse(const wxString& text, wxDateTime& result) wxOVERRIDE;
wxString m_iformat;
wxDateTime m_dateDef;
};
#endif // wxUSE_DATETIME

View File

@@ -208,7 +208,6 @@ void wxGridCellDateRenderer::SetParameters(const wxString& params)
wxGridCellDateTimeRenderer::wxGridCellDateTimeRenderer(const wxString& outformat, const wxString& informat)
: wxGridCellDateRenderer(outformat)
, m_iformat(informat)
, m_dateDef(wxDefaultDateTime)
{
}
@@ -219,7 +218,7 @@ wxGridCellRenderer *wxGridCellDateTimeRenderer::Clone() const
bool wxGridCellDateTimeRenderer::Parse(const wxString& text, wxDateTime& result)
{
const char * const end = result.ParseFormat(text, m_iformat, m_dateDef);
const char * const end = result.ParseFormat(text, m_iformat);
return end && !*end;
}