mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(internal): remove org-roam--get-title-or-slug function (#1284)
Every file has a title when saved into the database, so this function is redundant in most cases (e.g. in org-roam-buffer, where backlinks are fetched from the database).
This commit is contained in:
@ -403,8 +403,8 @@ Return the number of rows inserted."
|
||||
(puthash (car row) (cadr row) ht))
|
||||
ht))
|
||||
|
||||
(defun org-roam-db--get-titles (file)
|
||||
"Return the titles of FILE from the cache."
|
||||
(defun org-roam-db--get-title (file)
|
||||
"Return the main title of FILE from the cache."
|
||||
(caar (org-roam-db-query [:select [title] :from titles
|
||||
:where (= file $s1)
|
||||
:limit 1]
|
||||
|
Reference in New Issue
Block a user