Skip to content

Commit

Permalink
Merge pull request #241 from Phineas/remove-analytics
Browse files Browse the repository at this point in the history
Remove Lanyard.Analytics
  • Loading branch information
Phineas authored Sep 20, 2024
2 parents ae74f78 + ceb8b2c commit 777eb25
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 49 deletions.
11 changes: 0 additions & 11 deletions lib/analytics/interface.ex

This file was deleted.

33 changes: 0 additions & 33 deletions lib/analytics/spotify.ex

This file was deleted.

1 change: 0 additions & 1 deletion lib/lanyard.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ defmodule Lanyard do

:ets.new(:cached_presences, [:named_table, :set, :public])
:ets.new(:global_subscribers, [:named_table, :set, :public])
:ets.new(:analytics, [:named_table, :set, :public])

children = [
{Finch, name: Lanyard.Finch},
Expand Down
4 changes: 0 additions & 4 deletions lib/presence/presence.ex
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ defmodule Lanyard.Presence do
{:remote_send, %{op: 0, t: "PRESENCE_UPDATE", d: pretty_presence}}
)

Task.start(fn ->
Lanyard.Analytics.presence_tick(state.user_id, pretty_presence)
end)

{:noreply, Map.merge(state, new_state)}
end

Expand Down

0 comments on commit 777eb25

Please sign in to comment.