perf: remove block-has-children? function

This commit is contained in:
Tienson Qin
2020-11-12 21:55:06 +08:00
parent ba110322fb
commit 1b34099928
2 changed files with 2 additions and 9 deletions

View File

@@ -571,8 +571,7 @@
(dec (count value))
(util/get-input-pos input))
repo (or repo (state/get-current-repo))
;; block-has-children? (seq children) ; not working for now
block-has-children? (db/block-has-children? repo block)
block-has-children? (seq (:block/children block))
fst-block-text (subs value 0 pos)
snd-block-text (string/triml (subs value pos))
fst-block-text (string/trim (if with-level? fst-block-text (block/with-levels fst-block-text format block)))