emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote fd880f15a5 06/11: Remove denote--increment-ident


From: ELPA Syncer
Subject: [elpa] externals/denote fd880f15a5 06/11: Remove denote--increment-identifier and denote--return-new-identifier-if-duplicate
Date: Sun, 8 Oct 2023 03:57:49 -0400 (EDT)

branch: externals/denote
commit fd880f15a5bfbf23d51b687f3768d6136cb916fd
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>

    Remove denote--increment-identifier and 
denote--return-new-identifier-if-duplicate
---
 denote.el | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/denote.el b/denote.el
index 414d2ab021..09694d5a29 100644
--- a/denote.el
+++ b/denote.el
@@ -1690,19 +1690,6 @@ increment it 1 second at a time until an available id is 
found."
       (setq time (time-add time 1)))
     (format-time-string denote--id-format time)))
 
-(defun denote--increment-identifier (identifier)
-  "Increment IDENTIFIER.
-Preserve the date component and append to it the current time."
-  (let* ((datetime (split-string identifier "T"))
-         (date (car datetime)))
-    (concat date "T" (format-time-string "%H%M%S"))))
-
-(defun denote--return-new-identifier-if-duplicate (identifier)
-  "Return new unique identifier if IDENTIFIER already exists."
-  (while (denote--id-exists-p identifier)
-    (setq identifier (denote--increment-identifier identifier)))
-  identifier)
-
 (define-obsolete-function-alias
   'denote--barf-duplicate-id
   'denote-barf-duplicate-id



reply via email to

[Prev in Thread] Current Thread [Next in Thread]