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

This commit is contained in:
Tatsuhiro Tsujikawa 2016-03-25 23:31:46 +09:00
parent 00b2d7d513
commit 07926cffca
2 changed files with 0 additions and 6 deletions

View File

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

View File

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