summaryrefslogtreecommitdiffstats
path: root/modules/auth/repo_form.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-15 18:40:32 -0700
committerUnknwon <u@gogs.io>2016-08-15 18:40:32 -0700
commit4042d1f0c3c545773f81e2ca1b4eb8662bc4c425 (patch)
tree9bbbb404c9ee719f10e379cfc9699fddeaa94c0a /modules/auth/repo_form.go
parent4a46613916cdfa6a168746aba6abcd698cd17875 (diff)
downloadgitea-4042d1f0c3c545773f81e2ca1b4eb8662bc4c425.tar.gz
gitea-4042d1f0c3c545773f81e2ca1b4eb8662bc4c425.zip
models/issue: improve quality and performance of NewIssue function
Diffstat (limited to 'modules/auth/repo_form.go')
-rw-r--r--modules/auth/repo_form.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go
index 985fe24582..2eaefc5442 100644
--- a/modules/auth/repo_form.go
+++ b/modules/auth/repo_form.go
@@ -342,18 +342,3 @@ type DeleteRepoFileForm struct {
func (f *DeleteRepoFileForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
return validate(errs, ctx.Data, f, ctx.Locale)
}
-
-// __________ .__
-// \______ \____________ ____ ____ | |__
-// | | _/\_ __ \__ \ / \_/ ___\| | \
-// | | \ | | \// __ \| | \ \___| Y \
-// |______ / |__| (____ /___| /\___ >___| /
-// \/ \/ \/ \/ \/
-type NewBranchForm struct {
- OldBranchName string `binding:"Required;MaxSize(100)"`
- BranchName string `binding:"Required;MaxSize(100)"`
-}
-
-func (f *NewBranchForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
- return validate(errs, ctx.Data, f, ctx.Locale)
-}