Remove more unused fns

This commit is contained in:
Gabriel Horner
2022-01-26 12:42:52 -05:00
parent 4ce3db2497
commit b3ee61b1ca
18 changed files with 19 additions and 271 deletions

View File

@@ -136,38 +136,18 @@
(util/uuid-string? block-id))
block-id)))
;; FIXME:
(defn extract-title
[block]
(-> (:title (second block))
first
second))
(defn paragraph-block?
[block]
(and
(vector? block)
(= "Paragraph" (first block))))
(defn hiccup-block?
[block]
(and
(vector? block)
(= "Hiccup" (first block))))
(defn timestamp-block?
[block]
(and
(vector? block)
(= "Timestamp" (first block))))
(defn definition-list-block?
[block]
(and
(vector? block)
(= "List" (first block))
(:name (first (second block)))))
;; TODO: we should move this to mldoc
(defn extract-properties
[properties]
@@ -418,10 +398,6 @@
[:block/name (util/page-name-sanity-lc tag)])) tags))
block))
(defn src-block?
[block]
(some (fn [x] (and (vector? x) (= "Src" (first x)))) (:body block)))
(defn- get-block-content
[utf8-content block format block-content]
(let [meta (:meta block)