From 4d6385fc276a51be117937edd8a4e42ba764f4e3 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Fri, 4 Jul 2025 14:35:37 +0300 Subject: [PATCH] api: Remove unused get_json_return_type() templates Signed-off-by: Pavel Emelyanov Closes scylladb/scylladb#24837 --- api/config.cc | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/api/config.cc b/api/config.cc index bf06bc6184..d789783546 100644 --- a/api/config.cc +++ b/api/config.cc @@ -23,22 +23,6 @@ using namespace seastar::httpd; namespace sp = httpd::storage_proxy_json; namespace ss = httpd::storage_service_json; -template -json::json_return_type get_json_return_type(const T& val) { - return json::json_return_type(val); -} - -/* - * As commented on db::seed_provider_type is not used - * and probably never will. - * - * Just in case, we will return its name - */ -template<> -json::json_return_type get_json_return_type(const db::seed_provider_type& val) { - return json::json_return_type(val.class_name); -} - std::string_view format_type(std::string_view type) { if (type == "int") { return "integer";