Remove unused function tsdb/chunks.PopulatedChunk (#13763)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
pull/13772/head
Arve Knudsen 9 months ago committed by GitHub
parent f252d8a9d1
commit 1de49d5b69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -202,15 +202,6 @@ func ChunkFromSamplesGeneric(s Samples) (Meta, error) {
}, nil
}
// PopulatedChunk creates a chunk populated with samples every second starting at minTime.
func PopulatedChunk(numSamples int, minTime int64) (Meta, error) {
samples := make([]Sample, numSamples)
for i := 0; i < numSamples; i++ {
samples[i] = sample{t: minTime + int64(i*1000), f: 1.0}
}
return ChunkFromSamples(samples)
}
// ChunkMetasToSamples converts a slice of chunk meta data to a slice of samples.
// Used in tests to compare the content of chunks.
func ChunkMetasToSamples(chunks []Meta) (result []Sample) {

Loading…
Cancel
Save