From 0ee09320e00693b772f9d62156cce4a4bb88bebf Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 12 Mar 2016 21:06:05 +0900 Subject: [PATCH] src: Remove unused value_to_str --- src/http2.cc | 7 ------- src/http2.h | 3 --- 2 files changed, 10 deletions(-) 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);