Skip to content

Commit

Permalink
fix: remove unnecessary function
Browse files Browse the repository at this point in the history
  • Loading branch information
SqrtMinusOne committed Aug 14, 2022
1 parent 2dad0ce commit 0942131
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pomm-third-time.el
Original file line number Diff line number Diff line change
Expand Up @@ -375,14 +375,10 @@ Take a look at the `pomm-third-time' function for more details."
(unless pomm-third-time--timer
(setq pomm-third-time--timer (run-with-timer 0 1 'pomm-third-time--on-tick))))

(defun pomm-third-time--running-p ()
"Check if the timer is running."
(eq (alist-get 'status pomm-third-time--state) 'running))

(defun pomm-third-time--stop ()
"Stop the running Third Time timer."
(interactive)
(unless (pomm-third-time--can-stop-p)
(unless (eq (alist-get 'status pomm-third-time--state) 'running)
(user-error "The timer is not running!"))
(pomm-third-time--store-current-to-history)
(setf (alist-get 'status pomm-third-time--state) 'stopped
Expand Down

0 comments on commit 0942131

Please sign in to comment.