Skip to content

Commit 39dbb53

Browse files
committed
fix: compiler warnings for dead code
1 parent 6d6703f commit 39dbb53

File tree

5 files changed

+25
-85
lines changed

5 files changed

+25
-85
lines changed

lib/algora/payments/payments.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ defmodule Algora.Payments do
99
alias Algora.Bounties.Claim
1010
alias Algora.Bounties.Jobs.PromptPayoutConnect
1111
alias Algora.Bounties.Tip
12-
alias Algora.Cloud
1312
alias Algora.Jobs.JobPosting
1413
alias Algora.MoneyUtils
1514
alias Algora.Payments.Account

lib/algora/settings/settings.ex

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ defmodule Algora.Settings do
22
@moduledoc false
33
use Ecto.Schema
44

5-
import Ecto.Query
6-
75
alias Algora.Accounts
8-
alias Algora.Accounts.User
96
alias Algora.Repo
107

118
@primary_key {:key, :string, []}

lib/algora_web/live/community_live.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ defmodule AlgoraWeb.CommunityLive do
1515
alias Algora.Payments.Transaction
1616
alias Algora.Repo
1717
alias Algora.Workspace
18-
alias Algora.Workspace.Ticket
1918
alias AlgoraWeb.Components.Footer
2019
alias AlgoraWeb.Components.Header
2120
alias AlgoraWeb.Data.PlatformStats

lib/algora_web/live/home_live.ex

Lines changed: 24 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,61 +1255,6 @@ defmodule AlgoraWeb.HomeLive do
12551255

12561256
defp format_number(number), do: Number.Delimit.number_to_delimited(number, precision: 0)
12571257

1258-
defp pattern(assigns) do
1259-
~H"""
1260-
<div
1261-
class="absolute inset-x-0 -top-40 -z-10 transform overflow-hidden blur-3xl sm:-top-80"
1262-
aria-hidden="true"
1263-
>
1264-
<div
1265-
class="left-[calc(50%-11rem)] aspect-[1155/678] w-[36.125rem] rotate-[30deg] relative -translate-x-1/2 bg-gradient-to-tr from-gray-400 to-secondary opacity-20 sm:left-[calc(50%-30rem)] sm:w-[72.1875rem]"
1266-
style="clip-path: polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"
1267-
>
1268-
</div>
1269-
</div>
1270-
1271-
<div class="[mask-image:radial-gradient(32rem_32rem_at_center,white,transparent)] absolute inset-x-0 -z-10 h-screen w-full stroke-border">
1272-
<defs>
1273-
<pattern
1274-
id="grid-pattern"
1275-
width="200"
1276-
height="200"
1277-
x="50%"
1278-
y="-1"
1279-
patternUnits="userSpaceOnUse"
1280-
>
1281-
<path d="M.5 200V.5H200" fill="none" />
1282-
</pattern>
1283-
</defs>
1284-
<rect width="100%" height="100%" stroke-width="0" fill="url(#grid-pattern)" opacity="0.25" />
1285-
</div>
1286-
1287-
<div class="absolute inset-x-0 -z-10 transform overflow-hidden blur-3xl" aria-hidden="true">
1288-
<div
1289-
class="left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] relative -translate-x-1/2 bg-gradient-to-tr from-gray-400 to-secondary opacity-20 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"
1290-
style="clip-path: polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"
1291-
>
1292-
</div>
1293-
</div>
1294-
"""
1295-
end
1296-
1297-
defp social_icons do
1298-
%{
1299-
website: "tabler-world",
1300-
github: "github",
1301-
twitter: "tabler-brand-x",
1302-
youtube: "tabler-brand-youtube",
1303-
twitch: "tabler-brand-twitch",
1304-
discord: "tabler-brand-discord",
1305-
slack: "tabler-brand-slack",
1306-
linkedin: "tabler-brand-linkedin"
1307-
}
1308-
end
1309-
1310-
defp social_link(user, :github), do: if(login = user.provider_login, do: "https://github.com/#{login}")
1311-
defp social_link(user, platform), do: Map.get(user, :"#{platform}_url")
1312-
13131258
defp assign_user_applications(socket) do
13141259
user_applications =
13151260
if socket.assigns[:current_user] do
@@ -1552,30 +1497,30 @@ defmodule AlgoraWeb.HomeLive do
15521497
"""
15531498
end
15541499

1555-
defp user_features do
1556-
[
1557-
%{
1558-
title: "Bounties & contracts",
1559-
description: "Work on new projects and grow your career",
1560-
src: ~p"/images/screenshots/user-dashboard.png"
1561-
},
1562-
%{
1563-
title: "Your new resume",
1564-
description: "Showcase your open source contributions",
1565-
src: ~p"/images/screenshots/profile.png"
1566-
},
1567-
%{
1568-
title: "Embed on your site",
1569-
description: "Let anyone share a bounty/contract with you",
1570-
src: ~p"/images/screenshots/embed-profile.png"
1571-
},
1572-
%{
1573-
title: "Payment history",
1574-
description: "Monitor your earnings in real-time",
1575-
src: ~p"/images/screenshots/user-transactions.png"
1576-
}
1577-
]
1578-
end
1500+
# defp user_features do
1501+
# [
1502+
# %{
1503+
# title: "Bounties & contracts",
1504+
# description: "Work on new projects and grow your career",
1505+
# src: ~p"/images/screenshots/user-dashboard.png"
1506+
# },
1507+
# %{
1508+
# title: "Your new resume",
1509+
# description: "Showcase your open source contributions",
1510+
# src: ~p"/images/screenshots/profile.png"
1511+
# },
1512+
# %{
1513+
# title: "Embed on your site",
1514+
# description: "Let anyone share a bounty/contract with you",
1515+
# src: ~p"/images/screenshots/embed-profile.png"
1516+
# },
1517+
# %{
1518+
# title: "Payment history",
1519+
# description: "Monitor your earnings in real-time",
1520+
# src: ~p"/images/screenshots/user-transactions.png"
1521+
# }
1522+
# ]
1523+
# end
15791524

15801525
defp yc_logo_cloud(assigns) do
15811526
~H"""

lib/algora_web/live/org/dashboard_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,7 @@ defmodule AlgoraWeb.Org.DashboardLive do
16371637
"""
16381638
end
16391639

1640-
defp contract_for_user(contracts, user) do
1640+
defp contract_for_user(_contracts, _user) do
16411641
nil
16421642
end
16431643

0 commit comments

Comments
 (0)