[NO-TICKET] Cleanup - remove unused code (#16828)

Этот коммит содержится в:
Atanas Alexandrov
2021-02-02 11:28:31 +01:00
коммит произвёл GitHub
родитель 57f2e7dcd4
Коммит a31f666019
4 изменённых файлов: 38 добавлений и 20 удалений

Просмотреть файл

@@ -88,7 +88,7 @@ type Actions struct {
CreateGroupChannel func([]string, string) (*model.Channel, *model.AppError)
CreateChannel func(*model.Channel, bool) (*model.Channel, *model.AppError)
DoUploadFile func(time.Time, string, string, string, string, []byte) (*model.FileInfo, *model.AppError)
GenerateThumbnailImage func(image.Image, string, int, int)
GenerateThumbnailImage func(image.Image, string)
GeneratePreviewImage func(image.Image, string, int)
InvalidateAllCaches func()
MaxPostSize func() int
@@ -771,9 +771,9 @@ func (si *SlackImporter) oldImportFile(timestamp time.Time, file io.Reader, team
}
if fileInfo.IsImage() && fileInfo.MimeType != "image/svg+xml" {
img, width, height := si.actions.PrepareImage(data)
img, width, _ := si.actions.PrepareImage(data)
if img != nil {
si.actions.GenerateThumbnailImage(img, fileInfo.ThumbnailPath, width, height)
si.actions.GenerateThumbnailImage(img, fileInfo.ThumbnailPath)
si.actions.GeneratePreviewImage(img, fileInfo.PreviewPath, width)
}
}