Browse Source

remove unused :editor/last-edit-block

Tienson Qin 3 years ago
parent
commit
d286d37590
1 changed files with 0 additions and 6 deletions
  1. 0 6
      src/main/frontend/state.cljs

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

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