mirror of https://github.com/logseq/logseq
chore: remove unused select-highlight! and unhighlight!
parent
147de5e305
commit
e6c329d461
|
@ -205,8 +205,7 @@
|
|||
|
||||
(defn clear-selection!
|
||||
[]
|
||||
(state/clear-selection!)
|
||||
(util/select-unhighlight! (dom/by-class "selected")))
|
||||
(state/clear-selection!))
|
||||
|
||||
(defn- text-range-by-lst-fst-line [content [direction pos]]
|
||||
(case direction
|
||||
|
|
|
@ -1115,18 +1115,6 @@
|
|||
|
||||
(defn keyname [key] (str (namespace key) "/" (name key)))
|
||||
|
||||
#?(:cljs
|
||||
(defn select-highlight!
|
||||
[blocks]
|
||||
(doseq [block blocks]
|
||||
(d/add-class! block "selected noselect"))))
|
||||
|
||||
#?(:cljs
|
||||
(defn select-unhighlight!
|
||||
[blocks]
|
||||
(doseq [block blocks]
|
||||
(d/remove-class! block "selected" "noselect"))))
|
||||
|
||||
#?(:cljs
|
||||
(defn drain-chan
|
||||
"drop all stuffs in CH, and return all of them"
|
||||
|
|
Loading…
Reference in New Issue