Skip to content

Commit

Permalink
refactor: remove unused Stop function
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalcora committed Nov 5, 2024
1 parent ba8e638 commit 939b0e6
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/screens/stops/stop.ex
Original file line number Diff line number Diff line change
Expand Up @@ -282,17 +282,6 @@ defmodule Screens.Stops.Stop do
end)
end

def fetch_parent_stop_id(stop_id) do
case Screens.V3Api.get_json("stops/" <> stop_id, %{"include" => "parent_station"}) do
{:ok, %{"included" => [included_data]}} ->
%{"id" => parent_station_id} = included_data
parent_station_id

_ ->
nil
end
end

def fetch_subway_platforms_for_stop(stop_id) do
case Screens.V3Api.get_json("stops/" <> stop_id, %{"include" => "child_stops"}) do
{:ok, %{"included" => child_stop_data}} ->
Expand Down

0 comments on commit 939b0e6

Please sign in to comment.