Remove unused code

This commit is contained in:
Alexey Milovidov 2021-12-24 09:29:29 +03:00
parent d1df2af2df
commit edb50b5844

View File

@ -2,7 +2,6 @@
#include <string.h>
#include <string>
#include <sstream>
#include <exception>
#include <Common/DateLUT.h>
@ -154,19 +153,6 @@ public:
{
return !(*this == other);
}
/// NOTE Inefficient.
std::string toString(char separator = '-') const
{
std::stringstream ss;
if (separator)
ss << year() << separator << (month() / 10) << (month() % 10)
<< separator << (day() / 10) << (day() % 10);
else
ss << year() << (month() / 10) << (month() % 10)
<< (day() / 10) << (day() % 10);
return ss.str();
}
};
static_assert(sizeof(LocalDate) == 4);