Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(682)

Unified Diff: base/metrics/bucket_ranges.cc

Issue 2949983002: Inline BucketRanges::set_range (Closed)
Patch Set: switch to dcheck Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/metrics/bucket_ranges.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/bucket_ranges.cc
diff --git a/base/metrics/bucket_ranges.cc b/base/metrics/bucket_ranges.cc
index 084cdd3293a006b6802f259ec5020abed85e27b3..f995d7c43ebbb9aec2897c90de9e4460cb932f71 100644
--- a/base/metrics/bucket_ranges.cc
+++ b/base/metrics/bucket_ranges.cc
@@ -109,12 +109,6 @@ BucketRanges::BucketRanges(size_t num_ranges)
BucketRanges::~BucketRanges() {}
-void BucketRanges::set_range(size_t i, HistogramBase::Sample value) {
- DCHECK_LT(i, ranges_.size());
- CHECK_GE(value, 0);
- ranges_[i] = value;
-}
-
uint32_t BucketRanges::CalculateChecksum() const {
// Seed checksum.
uint32_t checksum = static_cast<uint32_t>(ranges_.size());
« no previous file with comments | « base/metrics/bucket_ranges.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698