diff --git a/clients/roscpp/src/libros/io.cpp b/clients/roscpp/src/libros/io.cpp index 66c4a9993a..bf0ca1bcb7 100644 --- a/clients/roscpp/src/libros/io.cpp +++ b/clients/roscpp/src/libros/io.cpp @@ -328,12 +328,6 @@ pollfd_vector_ptr poll_sockets(int epfd, socket_pollfd *fds, nfds_t nfds, int ti #else UNUSED(epfd); pollfd_vector_ptr ofds(new std::vector); - // Clear the `revents` fields - for (nfds_t i = 0; i < nfds; i++) - { - fds[i].revents = 0; - } - // use an existing poll implementation int result = poll(fds, nfds, timeout); if ( result < 0 ) diff --git a/clients/roscpp/src/libros/poll_set.cpp b/clients/roscpp/src/libros/poll_set.cpp index 7ae227d48d..acc6a95403 100644 --- a/clients/roscpp/src/libros/poll_set.cpp +++ b/clients/roscpp/src/libros/poll_set.cpp @@ -279,7 +279,6 @@ void PollSet::createNativePollset() pfd.events = info.events_; pfd.revents = 0; } - sockets_changed_ = false; } void PollSet::onLocalPipeEvents(int events)