From 5e38b3071b29f043faa02f95e2e919d0dc4ae75d Mon Sep 17 00:00:00 2001 From: Marcin Maliszkiewicz Date: Tue, 2 Dec 2025 15:28:02 +0100 Subject: [PATCH] utils: move rjson::to_string_view func to string related place --- utils/rjson.hh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/utils/rjson.hh b/utils/rjson.hh index 0459c1c1b2..566e155a0c 100644 --- a/utils/rjson.hh +++ b/utils/rjson.hh @@ -174,13 +174,6 @@ future<> print_with_extra_array(const rjson::value& value, seastar::output_stream& os, size_t max_nested_level = default_max_nested_level); -// Returns a string_view to the string held in a JSON value (which is -// assumed to hold a string, i.e., v.IsString() == true). This is a view -// to the existing data - no copying is done. -inline std::string_view to_string_view(const rjson::value& v) { - return std::string_view(v.GetString(), v.GetStringLength()); -} - // Copies given JSON value - involves allocation rjson::value copy(const rjson::value& value);