Skip to content

Commit

Permalink
delete unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
dpcollins-google committed Apr 21, 2022
1 parent 5478906 commit f392310
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/core/ext/transport/chttp2/transport/hpack_parser_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ auto MementoRingBuffer::PopOne() -> Memento {
return std::move(entries_[index]);
}

auto MementoRingBuffer::Lookup(uint32_t index) const -> const Memento* {
const Memento* MementoRingBuffer::Lookup(uint32_t index) const {
if (index >= num_entries_) return nullptr;
uint32_t offset = (num_entries_ - 1u - index + first_entry_) % max_entries_;
return &entries_[offset];
Expand Down Expand Up @@ -87,16 +87,6 @@ void HPackTable::EvictOne() {
mem_used_ -= first_entry.transport_size();
}

void HPackTable::Rebuild(uint32_t new_cap) {
EntriesVec entries;
entries.resize(new_cap);
for (size_t i = 0; i < num_entries_; i++) {
entries[i] = std::move(entries_[(first_entry_ + i) % entries_.size()]);
}
first_entry_ = 0;
entries_.swap(entries);
}

void HPackTable::SetMaxBytes(uint32_t max_bytes) {
if (max_bytes_ == max_bytes) {
return;
Expand Down

0 comments on commit f392310

Please sign in to comment.