lib/storage: remove unused function isTooBigTimeRangeForDateMetricIDs

This commit is contained in:
Aliaksandr Valialkin 2019-07-12 02:27:47 +03:00
parent fc90ebf43c
commit e75d5f47c4

View file

@ -1266,12 +1266,6 @@ func (is *indexSearch) getTagFilterWithMinMetricIDsCountAdaptive(tfs *TagFilters
var errTooManyMetrics = errors.New("all the tag filters match too many metrics")
func isTooBigTimeRangeForDateMetricIDs(tr TimeRange) bool {
minDate := uint64(tr.MinTimestamp) / msecPerDay
maxDate := uint64(tr.MaxTimestamp) / msecPerDay
return maxDate-minDate > 40
}
const maxDaysForDateMetricIDs = 40
func (is *indexSearch) adjustMaxMetricsAdaptive(tr TimeRange, maxMetrics int) int {