From 2c61efbe72bbb4169bf246e0576d12616cc3d453 Mon Sep 17 00:00:00 2001 From: Niels Mokkenstorm Date: Wed, 29 Jul 2026 00:12:40 +0200 Subject: [PATCH] refactor(server): drop dead browse.fetch_user_releases --- server/src/at_record_server/browse.gleam | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/server/src/at_record_server/browse.gleam b/server/src/at_record_server/browse.gleam index 1c86640..d811b54 100644 --- a/server/src/at_record_server/browse.gleam +++ b/server/src/at_record_server/browse.gleam @@ -220,14 +220,6 @@ fn fetch_user_records( |> result.unwrap([]) } -pub fn fetch_user_releases(client: Client, user: KnownUser) -> List(BrowseRow) { - fetch_user_records(client, user) - |> list.map(fn(r) { - let #(uri, cid, value) = r - to_browse_row(user, uri, cid, value) - }) -} - /// A network-first barcode hit: the release plus enough of the publisher to /// attribute it, shaped for `discogs.resolveBarcode`'s `network` field. pub type NetworkMatch { @@ -321,9 +313,9 @@ fn to_network_match( /// A decoded `catalog.release` plus its publisher, shaped as the `BrowseRow` /// every catalog-index writer needs. Exported for `user_backfill`, which -/// pages releases to exhaustion rather than through `fetch_user_releases`'s -/// single-page fan-out: this is the one place that shape is built, so the -/// backfill reuses it instead of duplicating it. +/// pages releases to exhaustion rather than through a single-page fan-out: +/// this is the one place that shape is built, so the backfill reuses it +/// instead of duplicating it. pub fn to_browse_row( user: KnownUser, uri: String, -- 2.51.2