[NO-TICKET] Remove unused function attributes (#16878)

Этот коммит содержится в:
Atanas Alexandrov
2021-02-08 10:11:07 +01:00
коммит произвёл GitHub
родитель 4a60cdaf4f
Коммит cda69d4dd7
4 изменённых файлов: 10 добавлений и 10 удалений

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

@@ -89,7 +89,7 @@ type Actions struct {
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)
GeneratePreviewImage func(image.Image, string, int)
GeneratePreviewImage func(image.Image, string)
InvalidateAllCaches func()
MaxPostSize func() int
PrepareImage func(fileData []byte) (image.Image, int, int)
@@ -771,10 +771,10 @@ func (si *SlackImporter) oldImportFile(timestamp time.Time, file io.Reader, team
}
if fileInfo.IsImage() && fileInfo.MimeType != "image/svg+xml" {
img, width, _ := si.actions.PrepareImage(data)
img, _, _ := si.actions.PrepareImage(data)
if img != nil {
si.actions.GenerateThumbnailImage(img, fileInfo.ThumbnailPath)
si.actions.GeneratePreviewImage(img, fileInfo.PreviewPath, width)
si.actions.GeneratePreviewImage(img, fileInfo.PreviewPath)
}
}