From 0942131ac3f2d20cc1004eecdb99ec0db1271c31 Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Sun, 14 Aug 2022 18:39:58 +0500 Subject: [PATCH] fix: remove unnecessary function --- pomm-third-time.el | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pomm-third-time.el b/pomm-third-time.el index 97536ac..5875176 100644 --- a/pomm-third-time.el +++ b/pomm-third-time.el @@ -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