Skip to content

Commit

Permalink
remove GetTimeAnd effect
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed May 13, 2020
1 parent a8837ab commit eeb9d70
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/Main.elm
Expand Up @@ -121,7 +121,6 @@ type Effect
| ReplaceUrl Route
| Put Value
| FocusOnEditor
| GetTimeAnd (Posix -> Msg)


update : Msg -> Model key -> ( Model key, Effect )
Expand Down Expand Up @@ -508,9 +507,6 @@ perform model effect =
(\_ -> FocusedOnEditor)
(Dom.focus "editor")

GetTimeAnd next ->
Task.perform next Time.now


port put : Value -> Cmd msg

Expand Down
4 changes: 0 additions & 4 deletions tests/MainTest.elm
Expand Up @@ -64,10 +64,6 @@ testPerform effect =
FocusOnEditor ->
SCmd.none

GetTimeAnd next ->
-- TODO: https://github.com/avh4/elm-program-test/issues/105
STask.perform next (STask.succeed (Time.millisToPosix 0))


programTest : Test
programTest =
Expand Down

0 comments on commit eeb9d70

Please sign in to comment.