diff options
author | thestig <thestig@chromium.org> | 2015-01-08 13:58:19 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-08 21:59:29 +0000 |
commit | 47be1d748166b47cf8ce838b889051aba3735eb8 (patch) | |
tree | 315304df10063bb1f2e5420f3c4d591e6482c3f6 /net | |
parent | 57461f22708d2122bfcf5d388bb5d439dc82ce58 (diff) | |
download | chromium_src-47be1d748166b47cf8ce838b889051aba3735eb8.zip chromium_src-47be1d748166b47cf8ce838b889051aba3735eb8.tar.gz chromium_src-47be1d748166b47cf8ce838b889051aba3735eb8.tar.bz2 |
Cleanup: Remove some redundant container clear() calls.
The STL utility functions already clear containers.
Review URL: https://codereview.chromium.org/843643002
Cr-Commit-Position: refs/heads/master@{#310608}
Diffstat (limited to 'net')
-rw-r--r-- | net/quic/quic_session.cc | 1 | ||||
-rw-r--r-- | net/spdy/spdy_read_queue.cc | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/net/quic/quic_session.cc b/net/quic/quic_session.cc index 20fd983..f747169 100644 --- a/net/quic/quic_session.cc +++ b/net/quic/quic_session.cc @@ -748,7 +748,6 @@ bool QuicSession::GetSSLInfo(SSLInfo* ssl_info) const { void QuicSession::PostProcessAfterData() { STLDeleteElements(&closed_streams_); - closed_streams_.clear(); if (connection()->connected() && locally_closed_streams_highest_offset_.size() > max_open_streams_) { diff --git a/net/spdy/spdy_read_queue.cc b/net/spdy/spdy_read_queue.cc index 36f1e06..627bf5b 100644 --- a/net/spdy/spdy_read_queue.cc +++ b/net/spdy/spdy_read_queue.cc @@ -53,7 +53,6 @@ size_t SpdyReadQueue::Dequeue(char* out, size_t len) { void SpdyReadQueue::Clear() { STLDeleteElements(&queue_); - queue_.clear(); } -} // namespace +} // namespace net |