From 963354c5d7e78eb9fed447ab9b9984420573649c Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 11 Oct 2014 18:02:48 -0400 Subject: Add raw, history file button, and other mirror fixes --- modules/middleware/context.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'modules') diff --git a/modules/middleware/context.go b/modules/middleware/context.go index 1d9f5738..86e98c90 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"] -- cgit v1.2.3