mirror of
https://github.com/penpot/penpot.git
synced 2025-06-18 22:11:38 +02:00
🔥 Remove unused d/update-vals function
Already available as clojure.core/update-vals
This commit is contained in:
parent
ccb7c466bf
commit
1b9dea01e2
9 changed files with 42 additions and 51 deletions
|
@ -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)
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue