From 2525388d53f911005762463769b2e4e16ee41796 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Fri, 1 Mar 2024 23:23:12 +0200 Subject: Remove gnosis-review-new-ef Calculate new ef using gnosis-algorithm --- gnosis.el | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gnosis.el b/gnosis.el index d9be4e9..ae0ce32 100644 --- a/gnosis.el +++ b/gnosis.el @@ -987,15 +987,6 @@ This function is used to round floating point numbers to 2 decimals, such as the easiness factor (ef)." (/ (round (* num 100.00)) 100.00)) -(defun gnosis-review-new-ef (id success) - "Return new ef for note with value of id ID. - -Returns a list of the form (ef-increase ef-decrease ef). -SUCCESS is a boolean value, t for success, nil for failure." - (let ((ef (nth 1 (gnosis-review--algorithm id success))) - (old-ef (gnosis-get 'ef 'review `(= id ,id)))) - (cl-substitute (gnosis-review-round ef) (nth 2 old-ef) old-ef))) - (defun gnosis-review--update (id success) "Update review-log for note with value of id ID. -- cgit v1.2.3