src: Remove unused value_to_str
This commit is contained in:
parent
78fcb2143f
commit
0ee09320e0
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue