mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 12:26:37 +02:00
🔥 Remove unused code.
This commit is contained in:
parent
05563168c3
commit
6cb2f1663e
2 changed files with 1 additions and 10 deletions
|
@ -219,15 +219,6 @@
|
||||||
:else
|
:else
|
||||||
(ex/raise :type :not-implemented)))
|
(ex/raise :type :not-implemented)))
|
||||||
|
|
||||||
(defn decode-pgobject
|
|
||||||
[^PGobject obj]
|
|
||||||
(let [typ (.getType obj)
|
|
||||||
val (.getValue obj)]
|
|
||||||
(if (or (= typ "json")
|
|
||||||
(= typ "jsonb"))
|
|
||||||
(json/read-str val)
|
|
||||||
val)))
|
|
||||||
|
|
||||||
(defn decode-json-pgobject
|
(defn decode-json-pgobject
|
||||||
[^PGobject o]
|
[^PGobject o]
|
||||||
(let [typ (.getType o)
|
(let [typ (.getType o)
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
[_task]
|
[_task]
|
||||||
(letfn [(decode-row [{:keys [data] :as row}]
|
(letfn [(decode-row [{:keys [data] :as row}]
|
||||||
(cond-> row
|
(cond-> row
|
||||||
(db/pgobject? data) (assoc :data (db/decode-pgobject data))))
|
(db/pgobject? data) (assoc :data (db/decode-json-pgobject data))))
|
||||||
(retrieve-items [conn]
|
(retrieve-items [conn]
|
||||||
(->> (db/exec! conn [sql:retrieve-peding-to-delete 10])
|
(->> (db/exec! conn [sql:retrieve-peding-to-delete 10])
|
||||||
(map decode-row)
|
(map decode-row)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue