diff --git a/.deadcode-out b/.deadcode-out index 6c59cb031b..6043eb64ba 100644 --- a/.deadcode-out +++ b/.deadcode-out @@ -253,9 +253,6 @@ code.gitea.io/gitea/services/context code.gitea.io/gitea/services/convert ToSecret -code.gitea.io/gitea/services/forms - DeadlineForm.Validate - code.gitea.io/gitea/services/pull IsCommitStatusContextSuccess diff --git a/services/forms/repo_form.go b/services/forms/repo_form.go index 1ce9b298ad..8253a8957b 100644 --- a/services/forms/repo_form.go +++ b/services/forms/repo_form.go @@ -740,17 +740,6 @@ type SaveTopicForm struct { Topics []string `binding:"topics;Required;"` } -// DeadlineForm hold the validation rules for deadlines -type DeadlineForm struct { - DateString string `form:"date" binding:"Required;Size(10)"` -} - -// Validate validates the fields -func (f *DeadlineForm) Validate(req *http.Request, errs binding.Errors) binding.Errors { - ctx := context.GetValidateContext(req) - return middleware.Validate(errs, ctx.Data, f, ctx.Locale) -} - type CommitNotesForm struct { Notes string }