src: Remove unused value_to_str

This commit is contained in:
Tatsuhiro Tsujikawa 2016-03-12 21:06:05 +09:00
parent 78fcb2143f
commit 0ee09320e0
2 changed files with 0 additions and 10 deletions

View File

@ -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();
}

View File

@ -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);