remove unused :editor/last-edit-block

This commit is contained in:
Tienson Qin
2022-04-22 00:33:48 +08:00
parent ec29848427
commit d286d37590

View File

@@ -838,10 +838,6 @@
[]
(get @state :editor/block))
(defn get-last-edit-block
[]
(:editor/last-edit-block @state))
(defn get-current-edit-block-and-position
[]
(let [edit-input-id (get-edit-input-id)
@@ -868,8 +864,6 @@
([edit-input-id content block cursor-range]
(set-editing! edit-input-id content block cursor-range true))
([edit-input-id content block cursor-range move-cursor?]
(when-let [editing-block (get-edit-block)]
(swap! state assoc :editor/last-edit-block editing-block))
(when (and edit-input-id block
(or
(publishing-enable-editing?)