chore: Remove DeleteAttachmentsByIssue

- Introduced in 4617bef895 and removed in ab2d0b3b44.
This commit is contained in:
Gusted 2025-01-30 12:04:14 +01:00
parent 7481624273
commit 901b32ce16
No known key found for this signature in database
GPG key ID: FD821B732837125F
3 changed files with 1 additions and 16 deletions

View file

@ -219,16 +219,6 @@ func DeleteAttachments(ctx context.Context, attachments []*Attachment, remove bo
return int(cnt), nil
}
// DeleteAttachmentsByIssue deletes all attachments associated with the given issue.
func DeleteAttachmentsByIssue(ctx context.Context, issueID int64, remove bool) (int, error) {
attachments, err := GetAttachmentsByIssueID(ctx, issueID)
if err != nil {
return 0, err
}
return DeleteAttachments(ctx, attachments, remove)
}
// DeleteAttachmentsByComment deletes all attachments associated with the given comment.
func DeleteAttachmentsByComment(ctx context.Context, commentID int64, remove bool) (int, error) {
attachments, err := GetAttachmentsByCommentID(ctx, commentID)