summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-03-01 23:23:12 +0200
committerThanos Apollo <[email protected]>2024-03-01 23:23:12 +0200
commit2525388d53f911005762463769b2e4e16ee41796 (patch)
tree0b9441dd07d5f341488c940cf3d7037a110e77ef
parent67e4ce6300f75ecc3c072176a2bfeada936a3a95 (diff)
Remove gnosis-review-new-ef
Calculate new ef using gnosis-algorithm
-rw-r--r--gnosis.el9
1 files changed, 0 insertions, 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.