Datemath: Remove unused functions (#43665)

dspermissions/remove-bus
Emil Tullstedt 3 years ago committed by GitHub
parent 1fe098ecd2
commit fdd196a627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      pkg/tsdb/legacydata/time_range.go

@ -75,14 +75,6 @@ func (tr DataTimeRange) ParseTo(options ...TimeRangeOption) (time.Time, error) {
return pt.Parse()
}
func (tr DataTimeRange) ParseFromWithWeekStart(location *time.Location, weekstart time.Weekday) (time.Time, error) {
return tr.ParseFrom(WithLocation(location), WithWeekstart(weekstart))
}
func (tr DataTimeRange) ParseToWithWeekStart(location *time.Location, weekstart time.Weekday) (time.Time, error) {
return tr.ParseTo(WithLocation(location), WithWeekstart(weekstart))
}
func WithWeekstart(weekday time.Weekday) TimeRangeOption {
return func(timeRange parsableTime) parsableTime {
timeRange.weekstart = &weekday

Loading…
Cancel
Save