Datemath: Remove unused functions (#43665)

This commit is contained in:
Emil Tullstedt
2022-01-07 12:53:31 +01:00
committed by GitHub
parent 1fe098ecd2
commit fdd196a627

View File

@@ -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