Browse Source

chore: clean up

main
Inhji Y. 3 months ago
parent
commit
e1ff51efaa
  1. 1
      lib/mirage_web/live/inbox_live.ex
  2. 4
      lib/mirage_web/live/link_live/show.ex

1
lib/mirage_web/live/inbox_live.ex

@ -4,7 +4,6 @@ defmodule MirageWeb.InboxLive do
@impl true
def mount(_params, %{"user_id" => user_id}, socket) do
current_user = user_id && Mirage.Accounts.get_user!(user_id)
settings = Mirage.Settings.list_settings_as_map()
unlinked = Mirage.Notes.list_notes(:unlinked)
untagged = Mirage.Notes.list_notes(:untagged)
at = Mirage.Notes.list_notes(:at)

4
lib/mirage_web/live/link_live/show.ex

@ -30,8 +30,4 @@ defmodule MirageWeb.LinkLive.Show do
{:ok, _} = Links.delete_link(link)
{:noreply, push_redirect(socket, to: "/links")}
end
defp list_links do
Links.list_links()
end
end
Loading…
Cancel
Save