🔥 Remove unused d/update-vals function

Already available as clojure.core/update-vals
This commit is contained in:
Andrey Antukh 2022-11-21 15:59:25 +01:00 committed by Andrés Moya
parent ccb7c466bf
commit 1b9dea01e2
9 changed files with 42 additions and 51 deletions

View file

@ -6,7 +6,6 @@
(ns app.main.data.workspace.persistence
(:require
[app.common.data :as d]
[app.common.data.macros :as dm]
[app.common.logging :as log]
[app.common.pages :as cp]
@ -156,7 +155,7 @@
frame-updates
(-> (group-by :page-id changes)
(d/update-vals #(into #{} (mapcat :frames) %)))]
(update-vals #(into #{} (mapcat :frames) %)))]
(rx/merge
(->> (rx/from frame-updates)

View file

@ -132,7 +132,7 @@
children-ids (cph/get-children-ids objects parent-id)
children
(-> (select-keys objects children-ids)
(d/update-vals
(update-vals
(fn [child]
(cond-> child
(contains? modifiers (:id child))

View file

@ -242,7 +242,7 @@
text-shapes
(mf/use-memo
(mf/deps text-shapes modifiers)
#(d/update-vals text-shapes (partial process-shape modifiers)))
#(update-vals text-shapes (partial process-shape modifiers)))
editing-shape (get text-shapes edition)

View file

@ -350,7 +350,7 @@
(mapv #(update % :starting-frame resolve)))
guides (-> (get-in page-data [:options :guides])
(d/update-vals #(update % :frame-id resolve)))
(update-vals #(update % :frame-id resolve)))
page-data (-> page-data
(d/assoc-in-when [:options :flows] flows)