summaryrefslogtreecommitdiffstats
path: root/modules/structs
diff options
context:
space:
mode:
authorkolaente <konrad@kola-entertainments.de>2019-06-12 21:41:28 +0200
committertechknowlogick <techknowlogick@gitea.io>2019-06-12 15:41:28 -0400
commitf9ec2f89f2265bc1371a6c62359de9816534fa6b (patch)
treef48b138a457e5ac6cf843bbb38400926704370f7 /modules/structs
parent5832f8d90df2d72cb38698c3e9050f2b29717dc7 (diff)
downloadgitea-f9ec2f89f2265bc1371a6c62359de9816534fa6b.tar.gz
gitea-f9ec2f89f2265bc1371a6c62359de9816534fa6b.zip
Add golangci (#6418)
Diffstat (limited to 'modules/structs')
-rw-r--r--modules/structs/user_search.go5
-rw-r--r--modules/structs/utils.go6
2 files changed, 0 insertions, 11 deletions
diff --git a/modules/structs/user_search.go b/modules/structs/user_search.go
deleted file mode 100644
index 1650cf736a..0000000000
--- a/modules/structs/user_search.go
+++ /dev/null
@@ -1,5 +0,0 @@
-package structs
-
-type searchUsersResponse struct {
- Users []*User `json:"data"`
-}
diff --git a/modules/structs/utils.go b/modules/structs/utils.go
index 1b9d689562..aaeb653d03 100644
--- a/modules/structs/utils.go
+++ b/modules/structs/utils.go
@@ -4,12 +4,6 @@
package structs
-import (
- "net/http"
-)
-
-var jsonHeader = http.Header{"content-type": []string{"application/json"}}
-
// Bool return address of bool value
func Bool(v bool) *bool {
return &v