summaryrefslogtreecommitdiffstats
path: root/modules/context/base.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/context/base.go')
-rw-r--r--modules/context/base.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/modules/context/base.go b/modules/context/base.go
index 8566ef7861..83e5a214f8 100644
--- a/modules/context/base.go
+++ b/modules/context/base.go
@@ -136,18 +136,6 @@ func (b *Base) JSON(status int, content any) {
}
}
-func (b *Base) JSONRedirect(redirect string) {
- b.JSON(http.StatusOK, map[string]any{"redirect": redirect})
-}
-
-func (b *Base) JSONOK() {
- b.JSON(http.StatusOK, map[string]any{"ok": true}) // this is only a dummy response, frontend seldom uses it
-}
-
-func (b *Base) JSONError(msg string) {
- b.JSON(http.StatusBadRequest, map[string]any{"errorMessage": msg})
-}
-
// RemoteAddr returns the client machine ip address
func (b *Base) RemoteAddr() string {
return b.Req.RemoteAddr