diff --git a/include/util/json_util.hpp b/include/util/json_util.hpp index 32a1bd7e4..466e27ee5 100644 --- a/include/util/json_util.hpp +++ b/include/util/json_util.hpp @@ -27,30 +27,6 @@ template T clamp_float(T d) return d; } - -template Array make_array(Args... args) -{ - Array a; - // TODO: check why a.values.emplace_back(args...); is not an option here - append_to_container(a.values, args...); - return a; -} - -// Easy acces to object hierachies -inline Value &get(Value &value) { return value; } - -template Value &get(Value &value, const char *key, Keys... keys) -{ - using recursive_object_t = mapbox::util::recursive_wrapper; - return get(value.get().get().values[key], keys...); -} - -template Value &get(Value &value, unsigned key, Keys... keys) -{ - using recursive_array_t = mapbox::util::recursive_wrapper; - return get(value.get().get().values[key], keys...); -} - } // namespace json } // namespace util } // namespace osrm