From b05f33cf63efd7f593ea86e7ed853c9adbeb2764 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Mon, 29 Dec 2014 11:12:17 +0200 Subject: [PATCH] tcp: drop two useless continuations They do nothing. --- net/tcp.hh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/net/tcp.hh b/net/tcp.hh index a4c1e9092a..bc96465931 100644 --- a/net/tcp.hh +++ b/net/tcp.hh @@ -867,9 +867,7 @@ future<> tcp::tcb::wait_for_data() { return make_ready_future<>(); } _rcv._data_received_promise = promise<>(); - return _rcv._data_received_promise->get_future().then([this] { - return make_ready_future<>(); - }); + return _rcv._data_received_promise->get_future(); } template @@ -878,9 +876,7 @@ future<> tcp::tcb::wait_for_all_data_acked() { return make_ready_future<>(); } _snd._all_data_acked_promise = promise<>(); - return _snd._all_data_acked_promise->get_future().then([this] { - return make_ready_future<>(); - }); + return _snd._all_data_acked_promise->get_future(); } template