chore: Remove DeadlineForm

- Introduced in 1a97030017 and removed in
ef6813abc9.
This commit is contained in:
Gusted 2025-01-31 11:16:10 +01:00
parent 552cfe75f5
commit 4d8f1e3e4b
No known key found for this signature in database
GPG key ID: FD821B732837125F
2 changed files with 0 additions and 14 deletions

View file

@ -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

View file

@ -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
}