diff --git a/src/http2.cc b/src/http2.cc index 092c4c8e..8b82dcca 100644 --- a/src/http2.cc +++ b/src/http2.cc @@ -302,13 +302,6 @@ const Headers::value_type *get_header(const Headers &nva, const char *name) { return res; } -std::string value_to_str(const HeaderRefs::value_type *nv) { - if (nv) { - return nv->value.str(); - } - return ""; -} - bool non_empty_value(const HeaderRefs::value_type *nv) { return nv && !nv->value.empty(); } diff --git a/src/http2.h b/src/http2.h index 0ae9d3b3..8ea2f91c 100644 --- a/src/http2.h +++ b/src/http2.h @@ -127,9 +127,6 @@ void add_header(Headers &nva, const uint8_t *name, size_t namelen, // in |nva| is returned. If no such entry exist, returns nullptr. const Headers::value_type *get_header(const Headers &nva, const char *name); -// Returns nv->second if nv is not nullptr. Otherwise, returns "". -std::string value_to_str(const HeaderRefs::value_type *nv); - // Returns true if the value of |nv| is not empty. bool non_empty_value(const HeaderRefs::value_type *nv);