index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
modules
/
middleware
/
context.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Unknwon <joe2010xtmf@163.com>
2014-10-11 18:02:48 -0400
committer
Unknwon <joe2010xtmf@163.com>
2014-10-11 18:02:48 -0400
commit
963354c5d7e78eb9fed447ab9b9984420573649c
(
patch
)
tree
896956c024e2b26f6517ea1a8138d83a7964254f
/
modules/middleware/context.go
parent
17c1bc73833a25a5841bc5ed344f343535bf1afc
(
diff
)
Add raw, history file button, and other mirror fixes
Diffstat
(limited to 'modules/middleware/context.go')
-rw-r--r--
modules/middleware/context.go
6
1 files changed, 0 insertions, 6 deletions
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"]