Skip to content

Commit

Permalink
chore(Stops.Repo): remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed May 7, 2024
1 parent c9e15fe commit efab3b8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions lib/stops/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,6 @@ defmodule Stops.Repo do
Api.by_trip(trip_id)
end

@impl Stops.Repo.Behaviour
def stop_exists_on_route?(stop_id, route, direction_id) do
route
|> by_route(direction_id)
|> Enum.any?(&(&1.id == stop_id))
end

@doc """
Returns a list of the features associated with the given stop
"""
Expand Down
2 changes: 0 additions & 2 deletions lib/stops/repo/behaviour.ex
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ defmodule Stops.Repo.Behaviour do

@callback by_trip(Trip.id_t()) :: Stop.stops_response()

@callback stop_exists_on_route?(Stop.id_t(), Route.t(), 0 | 1) :: boolean()

@callback stop_features(Stop.t()) :: [Stop.stop_feature()]
@callback stop_features(Stop.t(), Keyword.t()) :: [Stop.stop_feature()]
end

0 comments on commit efab3b8

Please sign in to comment.