From 316280048dbfb117fc5c6f618bf1610afc82ca67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Staff=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Fri, 5 Oct 2018 18:31:37 +0900 Subject: [PATCH] [enco] Remove unused internal helpers (#1762) Global.cpp includes several unused internal helpers, which was used to construct a string value before. Signed-off-by: Jonghyun Park --- contrib/enco/core/src/CppGen/Global.cpp | 45 --------------------------------- 1 file changed, 45 deletions(-) diff --git a/contrib/enco/core/src/CppGen/Global.cpp b/contrib/enco/core/src/CppGen/Global.cpp index cfc5e7f..d8ee646 100644 --- a/contrib/enco/core/src/CppGen/Global.cpp +++ b/contrib/enco/core/src/CppGen/Global.cpp @@ -16,53 +16,8 @@ #include "Global.h" -#include "String.h" - -#include - #include -// TODO Remove unused code -namespace -{ - -template std::string concat(const std::string &sep, Container &&c) -{ - std::stringstream ss; - enco::concat(ss, sep, c.begin(), c.end()); - return ss.str(); -} - -template -auto transform(Callable &&cb, InputIt beg, InputIt end) -> std::vector -{ - using U = decltype(cb(*beg)); - std::vector res; - - for (auto it = beg; it != end; ++it) - { - res.emplace_back(cb(*it)); - } - - return res; -} - -std::string u32_to_dec(uint32_t value) -{ - std::stringstream ss; - ss << value; - return ss.str(); -} - -std::string u08_to_hex(uint8_t value) -{ - std::stringstream ss; - ss << "0x" << std::hex << value + 0; - return ss.str(); -} - -} // namespace - namespace enco { -- 2.7.4