Removed old poll creation calls.

This commit is contained in:
rakshasa
2025-05-27 10:18:02 +02:00
committed by Jari Sundell
parent 46e94259e8
commit 5fb61b2857
5 changed files with 0 additions and 58 deletions
-13
View File
@@ -11,7 +11,6 @@
#include <torrent/http.h>
#include <torrent/torrent.h>
#include <torrent/exceptions.h>
#include <torrent/poll.h>
#include <torrent/data/chunk_utils.h>
#include <torrent/utils/log.h>
#include <rak/error_number.h>
@@ -132,16 +131,6 @@ client_perform() {
control->inc_tick();
}
torrent::Poll*
create_poll() {
torrent::Poll* poll = torrent::Poll::create(sysconf(_SC_OPEN_MAX));
if (poll == nullptr)
throw torrent::internal_error("Unable to create poll object: " + std::string(std::strerror(errno)));
return poll;
}
int
main(int argc, char** argv) {
try {
@@ -159,8 +148,6 @@ main(int argc, char** argv) {
srandom(random_seed);
srand48(random_seed);
torrent::Poll::slot_create_poll() = [](){ return create_poll(); };
torrent::initialize_main_thread();
torrent::log_initialize();