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 unused headway configuration #23

Closed
wants to merge 1 commit into from
Closed
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
23 changes: 0 additions & 23 deletions lib/config/v2/departures/headway.ex

This file was deleted.

6 changes: 2 additions & 4 deletions lib/config/v2/departures/section.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ defmodule ScreensConfig.V2.Departures.Section do
direction.
"""

alias ScreensConfig.V2.Departures.{Filters, Header, Headway, Layout, Query}
alias ScreensConfig.V2.Departures.{Filters, Header, Layout, Query}

@type t :: %__MODULE__{
query: Query.t(),
filters: Filters.t(),
header: Header.t(),
headway: Headway.t(),
layout: Layout.t(),
bidirectional: boolean()
}
Expand All @@ -23,12 +22,11 @@ defmodule ScreensConfig.V2.Departures.Section do
defstruct query: nil,
filters: Filters.from_json(:default),
header: Header.from_json(:default),
headway: Headway.from_json(:default),
layout: Layout.from_json(:default),
bidirectional: false

use ScreensConfig.Struct,
children: [query: Query, header: Header, filters: Filters, headway: Headway, layout: Layout]
children: [query: Query, filters: Filters, header: Header, layout: Layout]

defp value_from_json(_, value), do: value

Expand Down
Loading