From eff1648ad705e46ad057d101e168ab949b60529c Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Thu, 7 Nov 2019 15:03:14 -0800 Subject: [PATCH] Remove unused variable --- src/core/ext/transport/chttp2/transport/flow_control.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/core/ext/transport/chttp2/transport/flow_control.h b/src/core/ext/transport/chttp2/transport/flow_control.h index 76ef7a29530..f083ab10878 100644 --- a/src/core/ext/transport/chttp2/transport/flow_control.h +++ b/src/core/ext/transport/chttp2/transport/flow_control.h @@ -280,16 +280,12 @@ class TransportFlowControl final : public TransportFlowControlBase { void PreUpdateAnnouncedWindowOverIncomingWindow(int64_t delta) { if (delta > 0) { announced_stream_total_over_incoming_window_ -= delta; - } else { - announced_stream_total_under_incoming_window_ += -delta; } } void PostUpdateAnnouncedWindowOverIncomingWindow(int64_t delta) { if (delta > 0) { announced_stream_total_over_incoming_window_ += delta; - } else { - announced_stream_total_under_incoming_window_ -= -delta; } } @@ -325,7 +321,6 @@ class TransportFlowControl final : public TransportFlowControlBase { we want to adjust incoming_window such that: incoming_window = total_over - max(bdp - total_under, 0) */ int64_t announced_stream_total_over_incoming_window_ = 0; - int64_t announced_stream_total_under_incoming_window_ = 0; /** should we probe bdp? */ const bool enable_bdp_probe_;