aboutsummaryrefslogtreecommitdiff
path: root/src/Model/Timer.elm
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-03-21 21:11:10 +0100
committerJoris Guyonvarch2015-03-21 21:11:10 +0100
commit466d5dfdf398ba8c8665c841e04dafea7c288b95 (patch)
treec1b000be76541d248a0b84d0a3109661867d434c /src/Model/Timer.elm
parentbe2663265cc7205ff690a2fbf3346913c812085d (diff)
Adding a progress bar to the timer time
Diffstat (limited to 'src/Model/Timer.elm')
-rw-r--r--src/Model/Timer.elm17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/Model/Timer.elm b/src/Model/Timer.elm
index b73016d..f05c487 100644
--- a/src/Model/Timer.elm
+++ b/src/Model/Timer.elm
@@ -1,7 +1,6 @@
module Model.Timer
( Timer
, initialTimer
- , substractTimerTime
, initTime
) where
@@ -28,21 +27,5 @@ initialTimer creationTime name =
, state = Idle
}
-substractTimerTime : Time -> Timer -> Timer
-substractTimerTime time timer =
- if timer.state == Running
- then
- let newTime = timer.currentTime - time
- in if newTime <= 0.0
- then
- { timer
- | currentTime <- 0.0
- , state <- Ringing
- }
- else
- { timer | currentTime <- newTime }
- else
- timer
-
initTime : Time -> Time
initTime t = t + 999