From c96cb0602cd2e16fa493f287d7287438cd220056 Mon Sep 17 00:00:00 2001 From: Florian Fischer <florian.fl.fischer@fau.de> Date: Mon, 14 Sep 2020 13:26:45 +0200 Subject: [PATCH] remove writes that are never read --- emper/AsyncLibrary.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/emper/AsyncLibrary.cpp b/emper/AsyncLibrary.cpp index 8ca9027d..fc5fa161 100644 --- a/emper/AsyncLibrary.cpp +++ b/emper/AsyncLibrary.cpp @@ -367,7 +367,6 @@ int io::async_recv(int fd, unsigned char* buff, int buff_len, bool read_once, bo if (actually_read != -1) { - offset = actually_read; notify.curr_offset = actually_read; } network_add_epoll(¬ify); // Did not finish yet, add to epoll; we are first @@ -436,7 +435,6 @@ int io::async_send(int fd, unsigned char* buff, int buff_len, bool fd_serialized if (actually_send != -1) { - offset = actually_send; notify.curr_offset = actually_send; } network_add_epoll(¬ify); // Did not finish yet, add to epoll; we are first -- GitLab