diff --git a/CHANGELOG.md b/CHANGELOG.md index ab222d6de..11b841344 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ ## master / unreleased + - [REMOVED] `FromData` is considered unused so was removed. ## 0.6.1 - [BUGFIX] Update `last` after appending a non-overlapping chunk in `chunks.MergeOverlappingChunks`. [#539](https://github.com/prometheus/tsdb/pull/539) diff --git a/chunkenc/chunk.go b/chunkenc/chunk.go index 12dc75403..6c1b8b78d 100644 --- a/chunkenc/chunk.go +++ b/chunkenc/chunk.go @@ -14,7 +14,6 @@ package chunkenc import ( - "fmt" "sync" "github.com/pkg/errors" @@ -48,15 +47,6 @@ type Chunk interface { NumSamples() int } -// FromData returns a chunk from a byte slice of chunk data. -func FromData(e Encoding, d []byte) (Chunk, error) { - switch e { - case EncXOR: - return &XORChunk{b: bstream{count: 0, stream: d}}, nil - } - return nil, fmt.Errorf("unknown chunk encoding: %d", e) -} - // Appender adds sample pairs to a chunk. type Appender interface { Append(int64, float64)