src: HttpServer: Remove unused member variable sfd_

This commit is contained in:
Tatsuhiro Tsujikawa 2013-08-06 23:17:13 +09:00
parent 55b074e96e
commit 07814be5b2
2 changed files with 1 additions and 14 deletions

View File

@ -875,18 +875,7 @@ private:
HttpServer::HttpServer(const 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 {
int next_proto_cb(SSL *s, const unsigned char **data, unsigned int *len,

View File

@ -129,12 +129,10 @@ private:
class HttpServer {
public:
HttpServer(const Config* config);
~HttpServer();
int listen();
int run();
private:
const Config *config_;
int sfd_[2];
};
void htdocs_on_request_recv_callback