From 0bb6eac7f9c443017d28be400f5adddf7c486580 Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Fri, 30 Jun 2017 13:53:23 +0200 Subject: [PATCH] main: cleanup Poller implementation Signed-off-by: Marcus Fritzsch --- src/main.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 1359b22..e99e134 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -20,17 +20,11 @@ struct Poller { std::vector> handlers; std::vector pfds; - Poller(); + Poller() = default; void add_fd(int fd, std::function handler); int check_events(); }; -Poller::Poller() - : handlers(), - pfds() -{ -} - void Poller::add_fd(int fd, std::function handler) { pfds.emplace_back(pollfd{ .fd = fd, .events = POLLIN, .revents = 0 }); handlers.emplace_back(std::move(handler)); -- 2.16.6