Skip to content

Commit

Permalink
httpd: Drop dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
asias authored and avikivity committed Oct 23, 2014
1 parent b7ab462 commit 0b3fc25
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions apps/httpd/httpd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,6 @@ class http_server {
return make_ready_future<>();
});
}
future<> bad(std::unique_ptr<request> req) {
auto resp = std::make_unique<response>();
resp->_response_line = "HTTP/1.1 400 BAD REQUEST\r\n\r\n";
respond(std::move(resp));
_eof = true;
throw std::runtime_error("failed to parse request");
}
void respond(std::unique_ptr<response> resp) {
if (!_resp) {
_resp = std::move(resp);
Expand Down

0 comments on commit 0b3fc25

Please sign in to comment.