mirror of
https://github.com/penpot/penpot.git
synced 2026-04-30 05:38:42 +00:00
🔥 Remove duplicated check-fn
This commit is contained in:
parent
a2b8f19ff3
commit
b627c10737
@ -546,9 +546,6 @@
|
||||
(def check-segment
|
||||
(sm/check-fn schema:segment))
|
||||
|
||||
(def ^:private check-segments
|
||||
(sm/check-fn schema:segments))
|
||||
|
||||
(def check-content
|
||||
(sm/check-fn schema:content))
|
||||
|
||||
@ -611,7 +608,7 @@
|
||||
(defn from-plain
|
||||
"Create a PathData instance from plain data structures"
|
||||
[segments]
|
||||
(assert (check-segments segments))
|
||||
(assert (check-plain-content segments))
|
||||
|
||||
(let [total (count segments)
|
||||
buffer (buf/allocate (* total SEGMENT-BYTE-SIZE))]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user