summaryrefslogtreecommitdiffstats
path: root/modules/auth/release.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/auth/release.go')
-rw-r--r--modules/auth/release.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/modules/auth/release.go b/modules/auth/release.go
index 9855c30338..7774b914a0 100644
--- a/modules/auth/release.go
+++ b/modules/auth/release.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"
)
@@ -32,20 +31,6 @@ func (f *NewReleaseForm) Name(field string) string {
}
func (f *NewReleaseForm) 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("NewReleaseForm.Validate: %v", err)
- }
- return
- }
-
validate(errors, data, f)
}