Index: cc/resources/memory_history.cc |
diff --git a/cc/resources/memory_history.cc b/cc/resources/memory_history.cc |
index 4dc49c881a693ea1f6ea54166f2884034bedfa8d..29bad2a30b32946656aad5e86b971074525fee76 100644 |
--- a/cc/resources/memory_history.cc |
+++ b/cc/resources/memory_history.cc |
@@ -19,21 +19,4 @@ void MemoryHistory::SaveEntry(const MemoryHistory::Entry& entry) { |
ring_buffer_.SaveToBuffer(entry); |
} |
-void MemoryHistory::GetMinAndMax(size_t* min, size_t* max) const { |
- *min = std::numeric_limits<size_t>::max(); |
- *max = 0; |
- |
- for (RingBufferType::Iterator it = ring_buffer_.Begin(); it; ++it) { |
- size_t bytes_total = it->total_bytes_used; |
- |
- if (bytes_total < *min) |
- *min = bytes_total; |
- if (bytes_total > *max) |
- *max = bytes_total; |
- } |
- |
- if (*min > *max) |
- *min = *max; |
-} |
- |
} // namespace cc |