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

@ -46,11 +46,7 @@ func TestGetByCommentOrIssueID(t *testing.T) {
func TestDeleteAttachments(t *testing.T) {
require.NoError(t, unittest.PrepareTestDatabase())
count, err := repo_model.DeleteAttachmentsByIssue(db.DefaultContext, 4, false)
require.NoError(t, err)
assert.Equal(t, 2, count)
count, err = repo_model.DeleteAttachmentsByComment(db.DefaultContext, 2, false)
count, err := repo_model.DeleteAttachmentsByComment(db.DefaultContext, 2, false)
require.NoError(t, err)
assert.Equal(t, 2, count)