style: clean-ups

This commit is contained in:
3lswear
2022-02-21 00:38:40 +03:00
parent 7c849e301b
commit 45c21b9043
4 changed files with 2 additions and 8 deletions

View File

@@ -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;
}

View File

@@ -3,10 +3,7 @@
#include "webserv.hpp"
#include "Client.hpp"
#include "ServerConfig.hpp"
#include "Socket.hpp"
#include "parse.hpp"
class Client;

View File

@@ -7,6 +7,4 @@
#include "TOMLNode.hpp"
#include "TOMLParser.hpp"
TOMLMap *parse(char *filename);
#endif