From 6e3dba2cc559275b5287673957ec855e61b4163a Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 5 May 2014 19:58:13 -0400 Subject: Clean repo code --- modules/auth/admin.go | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'modules/auth/admin.go') diff --git a/modules/auth/admin.go b/modules/auth/admin.go index 39d2d09620..02a4dc489a 100644 --- a/modules/auth/admin.go +++ b/modules/auth/admin.go @@ -11,7 +11,6 @@ import ( "github.com/go-martini/martini" "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/modules/log" "github.com/gogits/gogs/modules/middleware/binding" ) @@ -36,20 +35,6 @@ func (f *AdminEditUserForm) Name(field string) string { } func (f *AdminEditUserForm) Validate(errors *binding.BindingErrors, req *http.Request, context martini.Context) { - if req.Method == "GET" || errors.Count() == 0 { - return - } - data := context.Get(reflect.TypeOf(base.TmplData{})).Interface().(base.TmplData) - data["HasError"] = true - AssignForm(f, data) - - if len(errors.Overall) > 0 { - for _, err := range errors.Overall { - log.Error("AdminEditUserForm.Validate: %v", err) - } - return - } - validate(errors, data, f) } -- cgit v1.2.3