chore: remove code left from acquisition and Discover suggestions, and uncalled queries

Nothing reached any of it:
- MusicBrainz search (artists, albums, songs), artist lookups and the
  query escaping they used. The release-group lookups the duplicate
  resolver uses stay.
- Release-group covers, and artist-level tags for artists not in the
  library.
- Nine named queries with no caller (CountTracksByArtist went with the
  previous commit), two of them describing request-progress reporting.

The MusicBrainz client's retry and not-found tests now drive the
release-group lookup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 22:02:00 -05:00
co-authored by Claude Opus 5.5
parent 987c2a68fa
commit 14aa3dcd5e
28 changed files with 10 additions and 817 deletions
-36
View File
@@ -109,42 +109,6 @@ func (q *Queries) ListInvitesActive(ctx context.Context) ([]UserInvite, error) {
return items, nil
}
const listInvitesAll = `-- name: ListInvitesAll :many
SELECT token, invited_by, note, created_at, expires_at, redeemed_at, redeemed_by FROM user_invites
ORDER BY created_at DESC
LIMIT $1
`
// Includes redeemed + expired for full audit visibility. Caller
// supplies a LIMIT to bound the response.
func (q *Queries) ListInvitesAll(ctx context.Context, limit int32) ([]UserInvite, error) {
rows, err := q.db.Query(ctx, listInvitesAll, limit)
if err != nil {
return nil, err
}
defer rows.Close()
var items []UserInvite
for rows.Next() {
var i UserInvite
if err := rows.Scan(
&i.Token,
&i.InvitedBy,
&i.Note,
&i.CreatedAt,
&i.ExpiresAt,
&i.RedeemedAt,
&i.RedeemedBy,
); err != nil {
return nil, err
}
items = append(items, i)
}
if err := rows.Err(); err != nil {
return nil, err
}
return items, nil
}
const redeemInvite = `-- name: RedeemInvite :execrows
UPDATE user_invites
SET redeemed_at = now(), redeemed_by = $2