Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Sep 24, 2024
1 parent 6a94cbd commit 706f23b
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/nextjournal/markdown/impl.clj
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,6 @@
z/up (z/edit assoc :type :todo-list)
z/down z/rightmost))

(def clazzes (atom #{}))

(comment
@clazzes
)

(def ^:private visitChildren-meth
;; cached reflection only happens once
(delay (let [meth (.getDeclaredMethod AbstractVisitor "visitChildren" (into-array [Node]))]
Expand Down Expand Up @@ -261,12 +255,10 @@

;; else branch nodes
(if (get-method open-node (class node))
(do
(swap! clazzes conj (class node))
(with-tight-list node
(swap! !ctx open-node node)
(.invoke ^java.lang.reflect.Method @visitChildren-meth this (into-array Object [node]))
(swap! !ctx close-node node)))
(with-tight-list node
(swap! !ctx open-node node)
(.invoke ^java.lang.reflect.Method @visitChildren-meth this (into-array Object [node]))
(swap! !ctx close-node node))
(prn ::not-implemented node))))))

(let [{:as ctx-out :keys [doc title toc footnotes] ::keys [label->footnote-ref]} (deref !ctx)]
Expand Down

0 comments on commit 706f23b

Please sign in to comment.