[enco] Remove unused internal helpers (#1762)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 5 Oct 2018 09:31:37 +0000 (18:31 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 5 Oct 2018 09:31:37 +0000 (18:31 +0900)
Global.cpp includes several unused internal helpers, which was used to
construct a string value before.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/enco/core/src/CppGen/Global.cpp

index cfc5e7f..d8ee646 100644 (file)
 
 #include "Global.h"
 
-#include "String.h"
-
-#include <pp/Format.h>
-
 #include <cassert>
 
-// TODO Remove unused code
-namespace
-{
-
-template <typename Container> std::string concat(const std::string &sep, Container &&c)
-{
-  std::stringstream ss;
-  enco::concat(ss, sep, c.begin(), c.end());
-  return ss.str();
-}
-
-template <typename Callable, typename InputIt>
-auto transform(Callable &&cb, InputIt beg, InputIt end) -> std::vector<decltype(cb(*beg))>
-{
-  using U = decltype(cb(*beg));
-  std::vector<U> 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
 {