From 4042d1f0c3c545773f81e2ca1b4eb8662bc4c425 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 15 Aug 2016 18:40:32 -0700 Subject: models/issue: improve quality and performance of NewIssue function --- modules/auth/repo_form.go | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'modules/auth/repo_form.go') 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) -} -- cgit v1.2.3