Unused function 'QTimeRange'

Signed-off-by: aixeshunter <aixeshunter@gmail.com>
This commit is contained in:
aixeshunter 2018-12-19 09:40:45 +08:00
parent cfc0d9c558
commit 4deb083823

View File

@ -511,8 +511,6 @@ type query struct {
// should be dropped from a result set for a given time.
type silenceFilter func(*pb.Silence, *Silences, time.Time) (bool, error)
var errNotSupported = errors.New("query parameter not supported")
// QIDs configures a query to select the given silence IDs.
func QIDs(ids ...string) QueryParam {
return func(q *query) error {
@ -521,15 +519,6 @@ func QIDs(ids ...string) QueryParam {
}
}
// QTimeRange configures a query to search for silences that are active
// in the given time range.
// TODO(fabxc): not supported yet.
func QTimeRange(start, end time.Time) QueryParam {
return func(q *query) error {
return errNotSupported
}
}
// QMatches returns silences that match the given label set.
func QMatches(set model.LabelSet) QueryParam {
return func(q *query) error {