Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove Triptychs #32

Merged
merged 2 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions lib/config/parameters.ex

This file was deleted.

18 changes: 3 additions & 15 deletions lib/config/screen.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ defmodule ScreensConfig.Screen do

alias ScreensConfig.{Bus, Dup, Gl, Solari, V2}
alias ScreensConfig.Util
alias ScreensConfig.V2.ScreenData.Parameters

@type app_id ::
:bus_eink
Expand All @@ -21,7 +20,6 @@ defmodule ScreensConfig.Screen do
| :solari_large
| :solari_large_v2
| :pre_fare_v2
| :triptych_v2

@type t :: %__MODULE__{
vendor: :gds | :mercury | :solari | :c3ms | :outfront | :lg_mri,
Expand All @@ -42,16 +40,15 @@ defmodule ScreensConfig.Screen do
| V2.Dup.t()
| V2.GlEink.t()
| V2.PreFare.t()
| V2.SolariLarge.t()
| V2.Triptych.t(),
| V2.SolariLarge.t(),
tags: list(String.t())
}

# If a Screens client app uses widgets, its ID must end with this suffix.
@v2_app_id_suffix "_v2"

@recognized_app_ids ~w[bus_eink dup gl_eink_single gl_eink_double solari solari_large]a
@recognized_v2_app_ids ~w[bus_eink_v2 bus_shelter_v2 busway_v2 dup_v2 gl_eink_v2 solari_large_v2 pre_fare_v2 triptych_v2]a
@recognized_v2_app_ids ~w[bus_eink_v2 bus_shelter_v2 busway_v2 dup_v2 gl_eink_v2 solari_large_v2 pre_fare_v2]a
@recognized_app_id_strings Enum.map(
@recognized_app_ids ++ @recognized_v2_app_ids,
&Atom.to_string/1
Expand All @@ -70,8 +67,7 @@ defmodule ScreensConfig.Screen do
solari: Solari,
solari_large: Solari,
solari_large_v2: V2.SolariLarge,
pre_fare_v2: V2.PreFare,
triptych_v2: V2.Triptych
pre_fare_v2: V2.PreFare
}

@enforce_keys [:vendor, :device_id, :name, :app_id, :app_params]
Expand Down Expand Up @@ -123,14 +119,6 @@ defmodule ScreensConfig.Screen do
|> String.ends_with?(@v2_app_id_suffix)
end

@doc """
Returns true if this screen can show any widget that implements `Screens.V2.AlertsWidget`.
"""
@spec shows_alerts?(t()) :: boolean()
def shows_alerts?(screen_config) do
Parameters.shows_alerts?(screen_config)
end

for vendor <- ~w[gds mercury solari c3ms outfront]a do
vendor_string = Atom.to_string(vendor)

Expand Down
20 changes: 0 additions & 20 deletions lib/config/v2/local_evergreen_set.ex

This file was deleted.

30 changes: 0 additions & 30 deletions lib/config/v2/train_crowding.ex

This file was deleted.

29 changes: 0 additions & 29 deletions lib/config/v2/triptych.ex

This file was deleted.

Loading