chore: remove unused select-highlight! and unhighlight!

pull/8878/head
Tienson Qin 2023-03-21 14:12:56 +08:00
parent 147de5e305
commit e6c329d461
2 changed files with 1 additions and 14 deletions

View File

@ -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

View File

@ -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"