From 1ab3c5e4dfa9f9cd3e52656c5b077cc8c045cd80 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Sun, 6 Apr 2025 09:10:12 +0100 Subject: [PATCH] Remove useless docs --- lib/music_library/collection.ex | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lib/music_library/collection.ex b/lib/music_library/collection.ex index 95e3cc64..566c234e 100644 --- a/lib/music_library/collection.ex +++ b/lib/music_library/collection.ex @@ -71,18 +71,6 @@ defmodule MusicLibrary.Collection do Repo.all(q) end - @doc """ - Returns a list of tuples containing artist names and their record count, - ordered by count in descending order. - - q = - from r in fragment("records, json_each(records.release_ids)"), - where: fragment("records.format = ?", ^format) and r.value == ^release_id, - select: %{ - record_id: fragment("records.id"), - purchased_at: fragment("records.purchased_at") - } - """ def count_records_by_artist(limit \\ 30) do q = from r in fragment("records, json_each(records.artists)"), @@ -95,10 +83,6 @@ defmodule MusicLibrary.Collection do Repo.all(q) end - @doc """ - Returns a list of tuples containing genre names and their record count, - ordered by count in descending order. - """ def count_records_by_genre(limit \\ 30) do q = from r in fragment("records, json_each(records.genres)"),