Skip to content

Commit

Permalink
Remove commented/unused function
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Ridley <benridley29@gmail.com>
  • Loading branch information
benridley committed Dec 7, 2021
1 parent dd35406 commit 9ac5bea
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions timeinterval/timeinterval.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,23 +172,6 @@ var monthsInv = map[int]string{
12: "december",
}

// UnmarshalYAML implements the Unmarshaller interface for TimeInterval
// Most fields are handled via their own UnmarshalYAML function, however we handle
// TimeZones here to ensure they always default to UTC if nothing is supplied.
// func (ti *TimeInterval) UnmarshalYAML(unmarshal func(interface{}) error) error {
// type temp TimeInterval
// var timeInterval temp
// err := unmarshal(&timeInterval)
// if err != nil {
// return err
// }
// if timeInterval.TimeZone == nil {
// timeInterval.TimeZone = &TimeZone{time.UTC}
// }
// *ti = TimeInterval(timeInterval)
// return nil
// }

// UnmarshalYAML implements the Unmarshaller interface for Timezone.
func (tz *TimeZone) UnmarshalYAML(unmarshal func(interface{}) error) error {
var str string
Expand Down

0 comments on commit 9ac5bea

Please sign in to comment.