Explorar o código

chore: remove unused async-chan

Tienson Qin %!s(int64=4) %!d(string=hai) anos
pai
achega
6a9dd1904b
Modificáronse 1 ficheiros con 0 adicións e 4 borrados
  1. 0 4
      src/main/frontend/db.cljs

+ 0 - 4
src/main/frontend/db.cljs

@@ -36,9 +36,6 @@
 ;; TODO: replace with LRUCache, only keep the latest 20 or 50 items?
 ;; TODO: replace with LRUCache, only keep the latest 20 or 50 items?
 (defonce query-state (atom {}))
 (defonce query-state (atom {}))
 
 
-; FIXME: Unused?
-(defonce async-chan (atom nil))
-
 ;; (defn clear-store!
 ;; (defn clear-store!
 ;;   []
 ;;   []
 ;;   (p/let [_ (.clear localforage)
 ;;   (p/let [_ (.clear localforage)
@@ -2291,7 +2288,6 @@
       (let [f (async/<! chan)]
       (let [f (async/<! chan)]
         (f))
         (f))
       (recur))
       (recur))
-    (reset! async-chan chan) ; FIXME: Unused?
     chan))
     chan))
 
 
 (defonce blocks-count-cache (atom nil))
 (defonce blocks-count-cache (atom nil))