Ver Fonte

remove unused :editor/last-edit-block

Tienson Qin há 3 anos atrás
pai
commit
d286d37590
1 ficheiros alterados com 0 adições e 6 exclusões
  1. 0 6
      src/main/frontend/state.cljs

+ 0 - 6
src/main/frontend/state.cljs

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