aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMartin Hartkorn <github@hartkorn.net>2016-02-14 22:40:39 +0100
committerMartin Hartkorn <github@hartkorn.net>2016-02-14 22:40:39 +0100
commit15d37b7a95829e7551d843925fb034bbc613b8f2 (patch)
tree1eb40439feed2385a90271dca00065fbc73a6787 /modules
parent15394f613f7c03d23903d75f12ba018b3b76dffa (diff)
Refactored according to suggestions
Diffstat (limited to 'modules')
-rw-r--r--modules/auth/repo_form.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go
index 5853c2c0..bd68feaf 100644
--- a/modules/auth/repo_form.go
+++ b/modules/auth/repo_form.go
@@ -37,18 +37,6 @@ func (f *CreateRepoForm) Validate(ctx *macaron.Context, errs binding.Errors) bin
return validate(errs, ctx.Data, f, ctx.Locale)
}
-type ConvertRepoForm struct {
- Uid int64 `binding:"Required"`
- RepoId int64 `binding:"Required"`
- RepoName string `binding:"Required;AlphaDashDot;MaxSize(100)"`
- Private bool
- Description string `binding:"MaxSize(255)"`
-}
-
-func (f *ConvertRepoForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
- return validate(errs, ctx.Data, f, ctx.Locale)
-}
-
type MigrateRepoForm struct {
CloneAddr string `json:"clone_addr" binding:"Required"`
AuthUsername string `json:"auth_username"`