Remove unused functions
This commit is contained in:
@@ -8,8 +8,6 @@ defmodule LastFm.Feed do
|
||||
to one track at a time, and the timestamp has second-level precision.
|
||||
"""
|
||||
|
||||
import Ecto.Query
|
||||
|
||||
@insertable_fields [
|
||||
:musicbrainz_id,
|
||||
:title,
|
||||
@@ -44,16 +42,6 @@ defmodule LastFm.Feed do
|
||||
{:ok, count}
|
||||
end
|
||||
|
||||
@spec all_tracks(non_neg_integer()) :: [LastFm.Track.t()]
|
||||
def all_tracks(limit) do
|
||||
q =
|
||||
from t in LastFm.Track,
|
||||
order_by: {:desc, t.scrobbled_at_uts},
|
||||
limit: ^limit
|
||||
|
||||
MusicLibrary.Repo.all(q)
|
||||
end
|
||||
|
||||
@spec subscribe() :: :ok
|
||||
def subscribe do
|
||||
Phoenix.PubSub.subscribe(LastFm.PubSub, "feed:update")
|
||||
|
||||
Reference in New Issue
Block a user