Remove unused LastFm.Feed functions

This commit is contained in:
Claudio Ortolina
2025-03-14 11:53:54 +00:00
parent 66f401b243
commit 828f1667bf
2 changed files with 0 additions and 61 deletions
-34
View File
@@ -37,40 +37,6 @@ defmodule LastFm.Feed do
:ets.select_reverse(__MODULE__, m)
end
@spec all_artists() :: [LastFm.Artist.t()]
def all_artists do
m = [
{
{:"$1", %{scrobbled_at_label: :"$2", artist: :"$3"}},
[],
[%{scrobbled_at_uts: :"$1", scrobbled_at_label: :"$2", artist: :"$3"}]
}
]
:ets.select_reverse(__MODULE__, m) |> Enum.uniq_by(fn pair -> pair.artist end)
end
@spec all_albums() :: [LastFm.Album.t()]
def all_albums do
m = [
{
{:"$1", %{scrobbled_at_label: :"$2", album: :"$3", cover_url: :"$4", artist: :"$5"}},
[],
[
%{
scrobbled_at_uts: :"$1",
scrobbled_at_label: :"$2",
album: :"$3",
cover_url: :"$4",
artist: :"$5"
}
]
}
]
:ets.select_reverse(__MODULE__, m) |> Enum.uniq_by(fn pair -> pair.album end)
end
@spec subscribe() :: :ok
def subscribe do
Phoenix.PubSub.subscribe(LastFm.PubSub, "feed:update")