branch: externals/denote
commit aaa5d30a7ced01741ac5b01a0bea9a7afd429751
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>

    Make obsolete the unused denote-link--expand-identifiers
    
    I know we use it in denote-org, but I will move it there and then
    refine it.
---
 denote.el | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/denote.el b/denote.el
index 3df7de68b5..5b5f8e229a 100644
--- a/denote.el
+++ b/denote.el
@@ -4875,15 +4875,7 @@ the active region specially, is up to it."
         (push (match-string-no-properties 1) matches)))
     matches))
 
-(defun denote-link--expand-identifiers (regexp)
-  "Expend identifiers matching REGEXP into file paths."
-  (let ((files (denote-directory-files))
-        found-files)
-    (dolist (file files)
-      (dolist (i (denote-link--collect-identifiers regexp))
-        (when (string= i (denote-retrieve-filename-identifier file))
-          (push file found-files))))
-    found-files))
+(make-obsolete 'denote-link--expand-identifiers nil "4.1.0")
 
 (defvar denote-link-find-file-history nil
   "History for `denote-find-link'.")

Reply via email to