Prune {Select,Deselect}AllKeys actions

Removing more unused code attempting to focus this app's scope.
This commit is contained in:
William Carroll 2020-04-19 00:31:06 +01:00
parent 11b140b6ae
commit 8620d86fd0

View file

@ -17,8 +17,6 @@ type Msg
| ToggleKey Theory.Key | ToggleKey Theory.Key
| DoNothing | DoNothing
| SetPracticeMode PracticeMode | SetPracticeMode PracticeMode
| SelectAllKeys
| DeselectAllKeys
| SetView View | SetView View
@ -125,23 +123,6 @@ update msg model =
, Cmd.none , Cmd.none
) )
SelectAllKeys ->
( { model
| whitelistedKeys = Theory.allKeys
, whitelistedChords =
Theory.allKeys |> List.concatMap Theory.chordsForKey
}
, Cmd.none
)
DeselectAllKeys ->
( { model
| whitelistedKeys = []
, whitelistedChords = []
}
, Cmd.none
)
NewChord chord -> NewChord chord ->
( { model | selectedChord = Just chord } ( { model | selectedChord = Just chord }
, Cmd.none , Cmd.none