mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 04:22:03 +00:00
Remove unused code
This commit is contained in:
parent
d1df2af2df
commit
edb50b5844
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <sstream>
|
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <Common/DateLUT.h>
|
#include <Common/DateLUT.h>
|
||||||
|
|
||||||
@ -154,19 +153,6 @@ public:
|
|||||||
{
|
{
|
||||||
return !(*this == other);
|
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);
|
static_assert(sizeof(LocalDate) == 4);
|
||||||
|
Loading…
Reference in New Issue
Block a user