Skip to content

Commit 70c20a7

Browse files
committed
chore: remove unused code
1 parent 4537327 commit 70c20a7

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/algora_web/live/org/dashboard_live.ex

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ defmodule AlgoraWeb.Org.DashboardLive do
7777

7878
if connected?(socket) do
7979
Phoenix.PubSub.subscribe(Algora.PubSub, "auth:#{socket.id}")
80-
Bounties.subscribe()
8180
end
8281

8382
{:ok,
@@ -87,7 +86,6 @@ defmodule AlgoraWeb.Org.DashboardLive do
8786
|> assign(:bounty_form, to_form(BountyForm.changeset(%BountyForm{}, %{})))
8887
|> assign(:tip_form, to_form(TipForm.changeset(%TipForm{}, %{})))
8988
|> assign(:experts, experts)
90-
|> assign_tickets()
9189
|> assign_achievements()}
9290
end
9391

@@ -243,10 +241,6 @@ defmodule AlgoraWeb.Org.DashboardLive do
243241
end
244242

245243
@impl true
246-
def handle_info(:bounties_updated, socket) do
247-
{:noreply, assign_tickets(socket)}
248-
end
249-
250244
def handle_info({:authenticated, user}, socket) do
251245
{:noreply, socket |> assign(:current_user, user) |> redirect(external: Github.install_url_select_target())}
252246
end
@@ -317,17 +311,6 @@ defmodule AlgoraWeb.Org.DashboardLive do
317311
end
318312
end
319313

320-
defp assign_tickets(socket) do
321-
tickets =
322-
Bounties.PrizePool.list(
323-
status: :open,
324-
tech_stack: socket.assigns.current_user.tech_stack,
325-
limit: 100
326-
)
327-
328-
assign(socket, :tickets, Enum.take(tickets, 6))
329-
end
330-
331314
defp assign_achievements(socket) do
332315
tech = List.first(socket.assigns.current_user.tech_stack)
333316

0 commit comments

Comments
 (0)