mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 14:01:37 +02:00
Remove unused code.
This commit is contained in:
parent
bfd99ebb8f
commit
8245ea0bdc
2 changed files with 2 additions and 4 deletions
|
@ -585,10 +585,8 @@
|
||||||
ptk/UpdateEvent
|
ptk/UpdateEvent
|
||||||
(update [_ state]
|
(update [_ state]
|
||||||
(let [pid (get-in state [:workspace :page])
|
(let [pid (get-in state [:workspace :page])
|
||||||
used-names (map #(get-in state [:shapes % :name])
|
|
||||||
(get-in state [:pages pid :shapes]))
|
|
||||||
selected (get-in state [:workspace :selected])]
|
selected (get-in state [:workspace :selected])]
|
||||||
(impl/group-shapes state selected used-names pid)))))
|
(impl/group-shapes state selected pid)))))
|
||||||
|
|
||||||
(defn degroup-selected
|
(defn degroup-selected
|
||||||
[]
|
[]
|
||||||
|
|
|
@ -310,7 +310,7 @@
|
||||||
(reduce match #{} (sequence xf shapes))))
|
(reduce match #{} (sequence xf shapes))))
|
||||||
|
|
||||||
(defn group-shapes
|
(defn group-shapes
|
||||||
[state shapes used-names page]
|
[state shapes page]
|
||||||
(letfn [(replace-first-item [pred coll replacement]
|
(letfn [(replace-first-item [pred coll replacement]
|
||||||
(into []
|
(into []
|
||||||
(concat
|
(concat
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue