Skip to content

Commit 50ca1c0

Browse files
committed
remove unused code
1 parent f184cec commit 50ca1c0

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

sdk/src/metrics/aggregation/base2_exponential_histogram_aggregation.cc

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,6 @@ uint32_t GetScaleReduction(int32_t start_index, int32_t end_index, size_t max_bu
4141
return scale_reduction;
4242
}
4343

44-
// Commented out as it is not used
45-
// uint32_t GetScaleReduction(const AdaptingCircularBufferCounter &first,
46-
// const AdaptingCircularBufferCounter &second,
47-
// size_t max_buckets)
48-
// {
49-
// if (first.Empty() || second.Empty())
50-
// {
51-
// return 0;
52-
// }
53-
// const int32_t start_index = (std::min)(first.StartIndex(), second.StartIndex());
54-
// const int32_t end_index = (std::max)(first.EndIndex(), second.EndIndex());
55-
// return GetScaleReduction(start_index, end_index, max_buckets);
56-
// }
57-
5844
void DownscaleBuckets(AdaptingCircularBufferCounter &buckets, uint32_t by) noexcept
5945
{
6046
if (buckets.Empty())

0 commit comments

Comments
 (0)