aboutsummaryrefslogtreecommitdiffhomepage
path: root/tdnet
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2024-02-29 19:28:15 +0300
committerlevlam <levlam@telegram.org>2024-02-29 19:28:15 +0300
commite82007e708274453dd0ac45d042ea32aa939bdaa (patch)
tree81ef1946e954e65ea7ffac5d5d061cf64b3dc6dd /tdnet
parentf8342527ca070fe06e3a8523904bbde536bb9644 (diff)
Remove unused field.
Diffstat (limited to 'tdnet')
-rw-r--r--tdnet/td/net/HttpChunkedByteFlow.cpp5
-rw-r--r--tdnet/td/net/HttpChunkedByteFlow.h1
2 files changed, 0 insertions, 6 deletions
diff --git a/tdnet/td/net/HttpChunkedByteFlow.cpp b/tdnet/td/net/HttpChunkedByteFlow.cpp
index 5a4f823d1..cc8e533c3 100644
--- a/tdnet/td/net/HttpChunkedByteFlow.cpp
+++ b/tdnet/td/net/HttpChunkedByteFlow.cpp
@@ -51,14 +51,10 @@ bool HttpChunkedByteFlow::loop() {
return false;
}
total_size_ += ready;
- uncommitted_size_ += ready;
output_.append(input_->cut_head(ready));
result = true;
len_ -= ready;
- if (uncommitted_size_ >= MIN_UPDATE_SIZE) {
- uncommitted_size_ = 0;
- }
if (len_ == 0) {
if (input_->size() < 2) {
@@ -72,7 +68,6 @@ bool HttpChunkedByteFlow::loop() {
return false;
}
state_ = State::ReadChunkLength;
- len_ = 0;
}
} while (false);
if (!is_input_active_ && !result) {
diff --git a/tdnet/td/net/HttpChunkedByteFlow.h b/tdnet/td/net/HttpChunkedByteFlow.h
index 62f5e597a..db68ea68f 100644
--- a/tdnet/td/net/HttpChunkedByteFlow.h
+++ b/tdnet/td/net/HttpChunkedByteFlow.h
@@ -25,7 +25,6 @@ class HttpChunkedByteFlow final : public ByteFlowBase {
size_t len_ = 0;
size_t save_len_ = 0;
size_t total_size_ = 0;
- size_t uncommitted_size_ = 0;
};
} // namespace td