diff --git a/contrib/epee/include/net/http_server_handlers_map2.h b/contrib/epee/include/net/http_server_handlers_map2.h index 00967b2da..848b8ffc4 100644 --- a/contrib/epee/include/net/http_server_handlers_map2.h +++ b/contrib/epee/include/net/http_server_handlers_map2.h @@ -152,16 +152,6 @@ epee::serialization::store_t_to_json(static_cast(rsp), response_info.m_body); \ return true; \ } \ - epee::serialization::storage_entry se; \ - if(ps.get_value("params", se, nullptr) && se.type() != typeid(epee::serialization::section)) \ - { \ - boost::value_initialized rsp; \ - static_cast(rsp).jsonrpc = "2.0"; \ - static_cast(rsp).error.code = -32701; \ - static_cast(rsp).error.message = "Params is not an object"; \ - epee::serialization::store_t_to_json(static_cast(rsp), response_info.m_body); \ - return true; \ - } \ epee::serialization::storage_entry id_; \ id_ = epee::serialization::storage_entry(std::string()); \ ps.get_value("id", id_, nullptr); \