diff options
author | Chris <ccbrown112@gmail.com> | 2017-10-30 11:58:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-30 11:58:00 -0500 |
commit | 3cbacb6858ea2dda67719de64854ed30dea3b626 (patch) | |
tree | 8d0177242e65c809250fa73bd93faae26bd1ca10 /api | |
parent | c5e8cb25caa39ed018ede5270e1566e8f7448396 (diff) | |
download | chat-3cbacb6858ea2dda67719de64854ed30dea3b626.tar.gz chat-3cbacb6858ea2dda67719de64854ed30dea3b626.tar.bz2 chat-3cbacb6858ea2dda67719de64854ed30dea3b626.zip |
Remove unused variables / code (#7736)
* remove unused variables / code
* fix bug in testPostStoreGetOldest
Diffstat (limited to 'api')
-rw-r--r-- | api/context.go | 1 | ||||
-rw-r--r-- | api/emoji.go | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/api/context.go b/api/context.go index 778df4625..fee78dbfd 100644 --- a/api/context.go +++ b/api/context.go @@ -32,7 +32,6 @@ type Context struct { T goi18n.TranslateFunc Locale string TeamId string - isSystemAdmin bool } func (api *API) ApiAppHandler(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler { diff --git a/api/emoji.go b/api/emoji.go index 8e89cf075..4edbbd082 100644 --- a/api/emoji.go +++ b/api/emoji.go @@ -192,10 +192,6 @@ func getEmojiImage(c *Context, w http.ResponseWriter, r *http.Request) { w.Write(image) } -func getEmojiImagePath(id string) string { - return "emoji/" + id + "/image" -} - func resizeEmoji(img image.Image, width int, height int) image.Image { emojiWidth := float64(width) emojiHeight := float64(height) |