From edb50b5844b35a373152ce824469c9eabc3e51c9 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Fri, 24 Dec 2021 09:29:29 +0300 Subject: [PATCH] Remove unused code --- src/Common/LocalDate.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/Common/LocalDate.h b/src/Common/LocalDate.h index 5ca0696c371..6c847ceff0e 100644 --- a/src/Common/LocalDate.h +++ b/src/Common/LocalDate.h @@ -2,7 +2,6 @@ #include #include -#include #include #include @@ -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);