mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 12:58:00 +03:00
style: clean-ups
This commit is contained in:
@@ -106,7 +106,7 @@ int Server::delete_client(std::map<int, Client *> &client_map, int fd)
|
||||
ret = epoll_ctl(_epoll_fd, EPOLL_CTL_DEL, fd, NULL);
|
||||
close(fd);
|
||||
client_map[fd]->clear();
|
||||
// delete (client_map[fd]);
|
||||
delete (client_map[fd]);
|
||||
client_map.erase(fd);
|
||||
DBOUT << RED <<
|
||||
"deleting client "
|
||||
@@ -257,7 +257,6 @@ void Server::run(void)
|
||||
}
|
||||
|
||||
}
|
||||
/* close(server_sock.getSocketFd()); */
|
||||
DBOUT << RED << "end;" << ENDL;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,10 +3,7 @@
|
||||
|
||||
#include "webserv.hpp"
|
||||
#include "Client.hpp"
|
||||
#include "ServerConfig.hpp"
|
||||
#include "Socket.hpp"
|
||||
#include "parse.hpp"
|
||||
|
||||
|
||||
class Client;
|
||||
|
||||
|
||||
@@ -87,4 +87,4 @@ public:
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -7,6 +7,4 @@
|
||||
#include "TOMLNode.hpp"
|
||||
#include "TOMLParser.hpp"
|
||||
|
||||
TOMLMap *parse(char *filename);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user