func setHourMinute is unused
256 return hour, minute, ref
257}
258
259func setHourMinute(hour, minute int) time.Time {260 now := time.Now().UTC()
261 timeZone := time.UTC
262 return time.Date(now.Year(), now.Month(), now.Day(), hour, minute, 0, 0, timeZone)
type dateTime is unused
11var months = []string{"jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"}
12var weekdays = []string{"sun", "mon", "tue", "wed", "thu", "fri", "sat"}
13
14type dateTime struct { 15 year int
16 month int
17 day int
Description
It is recommended to keep the codebase clean by removing unused code.
This part of the code has not been used anywhere in the project and is not exported. Maybe it was mistakenly left behind while refactoring or was intended to be used somewhere but remained unused by mistake.