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:
@@ -222,8 +222,7 @@ public:
|
|||||||
|
|
||||||
wxGridCellDateTimeRenderer(const wxGridCellDateTimeRenderer& other)
|
wxGridCellDateTimeRenderer(const wxGridCellDateTimeRenderer& other)
|
||||||
: wxGridCellDateRenderer(other),
|
: wxGridCellDateRenderer(other),
|
||||||
m_iformat(other.m_iformat),
|
m_iformat(other.m_iformat)
|
||||||
m_dateDef(other.m_dateDef)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -233,7 +232,6 @@ protected:
|
|||||||
virtual bool Parse(const wxString& text, wxDateTime& result) wxOVERRIDE;
|
virtual bool Parse(const wxString& text, wxDateTime& result) wxOVERRIDE;
|
||||||
|
|
||||||
wxString m_iformat;
|
wxString m_iformat;
|
||||||
wxDateTime m_dateDef;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_DATETIME
|
#endif // wxUSE_DATETIME
|
||||||
|
@@ -208,7 +208,6 @@ void wxGridCellDateRenderer::SetParameters(const wxString& params)
|
|||||||
wxGridCellDateTimeRenderer::wxGridCellDateTimeRenderer(const wxString& outformat, const wxString& informat)
|
wxGridCellDateTimeRenderer::wxGridCellDateTimeRenderer(const wxString& outformat, const wxString& informat)
|
||||||
: wxGridCellDateRenderer(outformat)
|
: wxGridCellDateRenderer(outformat)
|
||||||
, m_iformat(informat)
|
, m_iformat(informat)
|
||||||
, m_dateDef(wxDefaultDateTime)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -219,7 +218,7 @@ wxGridCellRenderer *wxGridCellDateTimeRenderer::Clone() const
|
|||||||
|
|
||||||
bool wxGridCellDateTimeRenderer::Parse(const wxString& text, wxDateTime& result)
|
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;
|
return end && !*end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user