src: HttpServer: Remove unused member variable sfd_
This commit is contained in:
parent
55b074e96e
commit
07814be5b2
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue