Commit 07814be5 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

src: HttpServer: Remove unused member variable sfd_

parent 55b074e9
...@@ -875,18 +875,7 @@ private: ...@@ -875,18 +875,7 @@ private:
HttpServer::HttpServer(const Config *config) HttpServer::HttpServer(const Config *config)
: config_(config) : config_(config)
{ {}
memset(sfd_, -1, sizeof(sfd_));
}
HttpServer::~HttpServer()
{
for(int i = 0; i < 2; ++i) {
if(sfd_[i] != -1) {
close(sfd_[i]);
}
}
}
namespace { namespace {
int next_proto_cb(SSL *s, const unsigned char **data, unsigned int *len, int next_proto_cb(SSL *s, const unsigned char **data, unsigned int *len,
......
...@@ -129,12 +129,10 @@ private: ...@@ -129,12 +129,10 @@ private:
class HttpServer { class HttpServer {
public: public:
HttpServer(const Config* config); HttpServer(const Config* config);
~HttpServer();
int listen(); int listen();
int run(); int run();
private: private:
const Config *config_; const Config *config_;
int sfd_[2];
}; };
void htdocs_on_request_recv_callback void htdocs_on_request_recv_callback
......
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