mirror of
https://github.com/penpot/penpot.git
synced 2025-05-12 07:06:38 +02:00
🔥 Remove unused media related api.
This commit is contained in:
parent
b71d5d26a6
commit
b2957c5f35
8 changed files with 10 additions and 216 deletions
|
@ -1706,7 +1706,6 @@
|
|||
(def link-file-to-library dwp/link-file-to-library)
|
||||
(def unlink-file-from-library dwp/unlink-file-from-library)
|
||||
(def upload-media-objects dwp/upload-media-objects)
|
||||
(def delete-media-object dwp/delete-media-object)
|
||||
|
||||
;; Selection
|
||||
|
||||
|
|
|
@ -422,18 +422,6 @@
|
|||
(rx/finalize (fn []
|
||||
(st/emit! (dm/hide-tag :media-loading))))))))))
|
||||
|
||||
|
||||
;; --- Delete media object
|
||||
|
||||
(defn delete-media-object
|
||||
[file-id id]
|
||||
(ptk/reify ::delete-media-object
|
||||
ptk/WatchEvent
|
||||
(watch [_ state stream]
|
||||
(let [params {:id id}]
|
||||
(rp/mutation :delete-media-object params)))))
|
||||
|
||||
|
||||
;; --- Helpers
|
||||
|
||||
(defn purge-page
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue