aboutsummaryrefslogtreecommitdiffstats
path: root/modules/middleware/context.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/middleware/context.go')
-rw-r--r--modules/middleware/context.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go
index 1d9f573898..86e98c9071 100644
--- a/modules/middleware/context.go
+++ b/modules/middleware/context.go
@@ -75,12 +75,6 @@ type Context struct {
}
}
-// Query querys form parameter.
-func (ctx *Context) Query(name string) string {
- ctx.Req.ParseForm()
- return ctx.Req.Form.Get(name)
-}
-
// HasError returns true if error occurs in form validation.
func (ctx *Context) HasApiError() bool {
hasErr, ok := ctx.Data["HasError"]