Remove unused field.

This commit is contained in:
levlam 2024-02-29 19:28:15 +03:00
parent f8342527ca
commit e82007e708
2 changed files with 0 additions and 6 deletions

View File

@ -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) {

View File

@ -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