chore: clean unused code

This commit is contained in:
Tienson Qin
2024-01-09 17:28:09 +08:00
parent d37d91198f
commit db8d84c9ee
3 changed files with 1 additions and 6 deletions

View File

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

View File

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

View File

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