0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 17:00:36 -05:00

🔥 Remove unused code

This commit is contained in:
Andrey Antukh 2022-03-07 15:50:31 +01:00
parent 867669cc98
commit 18a67a80bc
2 changed files with 0 additions and 16 deletions

View file

@ -465,21 +465,6 @@
(->> (rp/query :team-users {:team-id team-id}) (->> (rp/query :team-users {:team-id team-id})
(rx/map #(partial fetched %))))))) (rx/map #(partial fetched %)))))))
;; --- Update Nudge
(defn update-nudge
[value]
(ptk/reify ::update-nudge
ptk/UpdateEvent
(update [_ state]
(update-in state [:profile :props] assoc :nudge value))
ptk/WatchEvent
(watch [_ _ _]
(let [props {:nudge value}]
(->> (rp/mutation :update-profile-props {:props props})
(rx/map (constantly (fetch-profile))))))))
;; --- EVENT: request-account-deletion ;; --- EVENT: request-account-deletion
(defn request-account-deletion (defn request-account-deletion

View file

@ -37,7 +37,6 @@
on-close (mf/use-fn #(modal/hide!))] on-close (mf/use-fn #(modal/hide!))]
(mf/with-effect (mf/with-effect
;; (st/emit! (ptk/event ::ev/event {::ev/name "show-release-notes" :version version}))
(->> (events/listen js/document EventType.KEYDOWN on-keydown) (->> (events/listen js/document EventType.KEYDOWN on-keydown)
(partial events/unlistenByKey))) (partial events/unlistenByKey)))