Browse Source

refacotr(db): remove with-latest-txs

defclass 5 years ago
parent
commit
15e1eeb81a
2 changed files with 0 additions and 8 deletions
  1. 0 0
      src/main/frontend/db.cljs
  2. 0 8
      src/main/frontend/db/model.cljs

File diff suppressed because it is too large
+ 0 - 0
src/main/frontend/db.cljs


+ 0 - 8
src/main/frontend/db/model.cljs

@@ -1254,14 +1254,6 @@
       (state/set-config! repo-url config)
       config)))
 
-(defn with-latest-txs!
-  [db repo file?]
-  (let [txs (state/get-repo-latest-txs repo file?)
-        tx-data (when (seq txs) (map :tx-data txs))]
-    (if (seq tx-data)
-      (d/db-with db tx-data)
-      db)))
-
 (defn get-db-type
   [repo]
   (get-key-value repo :db/type))

Some files were not shown because too many files changed in this diff