mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 02:28:53 +08:00
src: Remove unused value_to_str
This commit is contained in:
@@ -302,13 +302,6 @@ const Headers::value_type *get_header(const Headers &nva, const char *name) {
|
|||||||
return res;
|
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) {
|
bool non_empty_value(const HeaderRefs::value_type *nv) {
|
||||||
return nv && !nv->value.empty();
|
return nv && !nv->value.empty();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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.
|
// in |nva| is returned. If no such entry exist, returns nullptr.
|
||||||
const Headers::value_type *get_header(const Headers &nva, const char *name);
|
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.
|
// Returns true if the value of |nv| is not empty.
|
||||||
bool non_empty_value(const HeaderRefs::value_type *nv);
|
bool non_empty_value(const HeaderRefs::value_type *nv);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user