mirror of
https://github.com/logseq/logseq.git
synced 2026-05-27 22:24:09 +00:00
chore: clean unused code
This commit is contained in:
@@ -275,7 +275,7 @@
|
||||
(when-not (and (:create-today-journal? tx-meta)
|
||||
(:today-journal-name tx-meta)
|
||||
(d/entity @conn [:block/name (:today-journal-name tx-meta)])) ; today journal created already
|
||||
(ldb/transact! conn tx-data tx-meta))
|
||||
(ldb/transact! conn tx-data tx-meta'))
|
||||
nil)
|
||||
(catch :default e
|
||||
(prn :debug :error)
|
||||
|
||||
@@ -40,9 +40,6 @@
|
||||
(defn store-undo-data!
|
||||
[{:keys [tx-meta] :as opts}]
|
||||
(when-not config/test?
|
||||
(when-let [replace-tx-data (:replace-tx-data opts)]
|
||||
(db/transact! (state/get-current-repo) replace-tx-data (:replace-tx-meta opts)))
|
||||
|
||||
(when (or (:outliner/transact? tx-meta)
|
||||
(:outliner-op tx-meta)
|
||||
(:whiteboard/transact? tx-meta))
|
||||
|
||||
@@ -106,8 +106,6 @@
|
||||
(doseq [page pages]
|
||||
(file/sync-to-file repo (:db/id page) tx-meta))
|
||||
{:tx-report final-tx-report
|
||||
:replace-tx-data (:tx-data tx-report')
|
||||
:replace-tx-meta (:tx-meta tx-report')
|
||||
:affected-keys affected-query-keys
|
||||
:deleted-block-uuids deleted-block-uuids
|
||||
:pages pages
|
||||
|
||||
Reference in New Issue
Block a user