Remove unused field.
This commit is contained in:
parent
f8342527ca
commit
e82007e708
|
@ -51,14 +51,10 @@ bool HttpChunkedByteFlow::loop() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
total_size_ += ready;
|
total_size_ += ready;
|
||||||
uncommitted_size_ += ready;
|
|
||||||
|
|
||||||
output_.append(input_->cut_head(ready));
|
output_.append(input_->cut_head(ready));
|
||||||
result = true;
|
result = true;
|
||||||
len_ -= ready;
|
len_ -= ready;
|
||||||
if (uncommitted_size_ >= MIN_UPDATE_SIZE) {
|
|
||||||
uncommitted_size_ = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (len_ == 0) {
|
if (len_ == 0) {
|
||||||
if (input_->size() < 2) {
|
if (input_->size() < 2) {
|
||||||
|
@ -72,7 +68,6 @@ bool HttpChunkedByteFlow::loop() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
state_ = State::ReadChunkLength;
|
state_ = State::ReadChunkLength;
|
||||||
len_ = 0;
|
|
||||||
}
|
}
|
||||||
} while (false);
|
} while (false);
|
||||||
if (!is_input_active_ && !result) {
|
if (!is_input_active_ && !result) {
|
||||||
|
|
|
@ -25,7 +25,6 @@ class HttpChunkedByteFlow final : public ByteFlowBase {
|
||||||
size_t len_ = 0;
|
size_t len_ = 0;
|
||||||
size_t save_len_ = 0;
|
size_t save_len_ = 0;
|
||||||
size_t total_size_ = 0;
|
size_t total_size_ = 0;
|
||||||
size_t uncommitted_size_ = 0;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace td
|
} // namespace td
|
||||||
|
|
Loading…
Reference in New Issue
Block a user