Remove unused code

This commit is contained in:
stuzer05 2023-06-18 19:34:22 +03:00
parent 015ad01513
commit cef496af2a
No known key found for this signature in database
GPG Key ID: A6ABAAA9268F9F4F
1 changed files with 0 additions and 8 deletions

View File

@ -23,14 +23,6 @@ import (
"code.gitea.io/gitea/modules/repository"
)
const (
secondsByMinute = float64(time.Minute / time.Second) // seconds in a minute
secondsByHour = 60 * secondsByMinute // seconds in an hour
secondsByDay = 8 * secondsByHour // seconds in a day
secondsByWeek = 5 * secondsByDay // seconds in a week
secondsByMonth = 4 * secondsByWeek // seconds in a month
)
func issueAddTime(issue *issues_model.Issue, doer *user_model.User, time time.Time, timeLog string) error {
amount := timeutil.TimeEstimateFromStr(timeLog)
if amount == 0 {