Remove unused variables / code (#7736)

* remove unused variables / code

* fix bug in testPostStoreGetOldest
This commit is contained in:
Chris
2017-10-30 11:58:00 -05:00
committed by GitHub
parent c5e8cb25ca
commit 3cbacb6858
11 changed files with 6 additions and 371 deletions

View File

@@ -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 {

View File

@@ -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)