diff --git a/api/api.hh b/api/api.hh index 4a911ae3d7..7607ec4dc0 100644 --- a/api/api.hh +++ b/api/api.hh @@ -23,31 +23,6 @@ namespace api { -template -std::vector map_to_key_value(const std::map& map) { - std::vector res; - res.reserve(map.size()); - - for (const auto& [key, value] : map) { - res.push_back(T()); - res.back().key = key; - res.back().value = value; - } - return res; -} - -template -std::vector& map_to_key_value(const MAP& map, std::vector& res) { - res.reserve(res.size() + std::size(map)); - - for (const auto& [key, value] : map) { - T val; - val.key = fmt::to_string(key); - val.value = fmt::to_string(value); - res.push_back(val); - } - return res; -} template T map_sum(T&& dest, const S& src) { for (const auto& i : src) {