Remove more unused fns

This commit is contained in:
Gabriel Horner
2022-01-26 12:42:52 -05:00
parent 4ce3db2497
commit b3ee61b1ca
18 changed files with 19 additions and 271 deletions

View File

@@ -12,8 +12,7 @@
[frontend.db.utils :as db-utils]
[frontend.state :as state]
[frontend.util :as util :refer [react]]
[frontend.util.marker :as marker]
[frontend.db.rules :as rules]))
[frontend.util.marker :as marker]))
;; Query atom of map of Key ([repo q inputs]) -> atom
;; TODO: replace with LRUCache, only keep the latest 20 or 50 items?
@@ -136,10 +135,6 @@
(set! (.-state result-atom) result)
(add-q! k nil nil result-atom identity identity identity))))))
(defn add-rules-to-inputs
[inputs]
(conj (vec inputs) rules/rules))
(defn q
[repo k {:keys [use-cache? transform-fn query-fn inputs-fn disable-reactive?]
:or {use-cache? true