go-graphite / carbonapi

Unused code SCC-U1000
Bug risk
Major
2 occurrences in this check
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