Remove unused Msg's
I'm sure this app contains more unused code. I would like to find some Elm tools for detecting and deleting dead code, but this isn't my current priority. My current priority is dogfooding this app until I find it genuinely useful for myself.
This commit is contained in:
parent
541c40cd2f
commit
ae31090a46
1 changed files with 0 additions and 48 deletions
|
@ -12,8 +12,6 @@ type Msg
|
||||||
| Pause
|
| Pause
|
||||||
| SetTempo String
|
| SetTempo String
|
||||||
| ToggleInversion Theory.ChordInversion
|
| ToggleInversion Theory.ChordInversion
|
||||||
| ToggleChordType Theory.ChordType
|
|
||||||
| TogglePitchClass Theory.PitchClass
|
|
||||||
| ToggleKey Theory.Key
|
| ToggleKey Theory.Key
|
||||||
| DoNothing
|
| DoNothing
|
||||||
| SetView View
|
| SetView View
|
||||||
|
@ -125,29 +123,6 @@ update msg model =
|
||||||
, Cmd.none
|
, Cmd.none
|
||||||
)
|
)
|
||||||
|
|
||||||
ToggleChordType chordType ->
|
|
||||||
let
|
|
||||||
chordTypes =
|
|
||||||
if List.member chordType model.whitelistedChordTypes then
|
|
||||||
List.filter ((/=) chordType) model.whitelistedChordTypes
|
|
||||||
|
|
||||||
else
|
|
||||||
chordType :: model.whitelistedChordTypes
|
|
||||||
in
|
|
||||||
( { model
|
|
||||||
| whitelistedChordTypes = chordTypes
|
|
||||||
, whitelistedChords =
|
|
||||||
Theory.allChords
|
|
||||||
{ start = model.firstNote
|
|
||||||
, end = model.lastNote
|
|
||||||
, inversions = model.whitelistedInversions
|
|
||||||
, chordTypes = chordTypes
|
|
||||||
, pitchClasses = model.whitelistedPitchClasses
|
|
||||||
}
|
|
||||||
}
|
|
||||||
, Cmd.none
|
|
||||||
)
|
|
||||||
|
|
||||||
ToggleInversion inversion ->
|
ToggleInversion inversion ->
|
||||||
let
|
let
|
||||||
inversions =
|
inversions =
|
||||||
|
@ -167,29 +142,6 @@ update msg model =
|
||||||
, Cmd.none
|
, Cmd.none
|
||||||
)
|
)
|
||||||
|
|
||||||
TogglePitchClass pitchClass ->
|
|
||||||
let
|
|
||||||
pitchClasses =
|
|
||||||
if List.member pitchClass model.whitelistedPitchClasses then
|
|
||||||
List.filter ((/=) pitchClass) model.whitelistedPitchClasses
|
|
||||||
|
|
||||||
else
|
|
||||||
pitchClass :: model.whitelistedPitchClasses
|
|
||||||
in
|
|
||||||
( { model
|
|
||||||
| whitelistedPitchClasses = pitchClasses
|
|
||||||
, whitelistedChords =
|
|
||||||
Theory.allChords
|
|
||||||
{ start = model.firstNote
|
|
||||||
, end = model.lastNote
|
|
||||||
, inversions = model.whitelistedInversions
|
|
||||||
, chordTypes = model.whitelistedChordTypes
|
|
||||||
, pitchClasses = pitchClasses
|
|
||||||
}
|
|
||||||
}
|
|
||||||
, Cmd.none
|
|
||||||
)
|
|
||||||
|
|
||||||
ToggleKey key ->
|
ToggleKey key ->
|
||||||
let
|
let
|
||||||
keys =
|
keys =
|
||||||
|
|
Loading…
Reference in a new issue