Commit 07926cff authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

src: Remove lookup_method_token(const std::string&)

parent 00b2d7d5
......@@ -1205,11 +1205,6 @@ bool expect_response_body(int method_token, int status_code) {
return method_token != HTTP_HEAD && expect_response_body(status_code);
}
int lookup_method_token(const std::string &name) {
return lookup_method_token(reinterpret_cast<const uint8_t *>(name.c_str()),
name.size());
}
int lookup_method_token(const StringRef &name) {
return lookup_method_token(name.byte(), name.size());
}
......
......@@ -352,7 +352,6 @@ bool expect_response_body(int status_code);
// Only methods defined in http-parser/http-parser.h (http_method) are
// tokenized. If method name cannot be tokenized, returns -1.
int lookup_method_token(const uint8_t *name, size_t namelen);
int lookup_method_token(const std::string &name);
int lookup_method_token(const StringRef &name);
// Returns string representation of |method_token|. This is wrapper
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment