Skip to content

Commit

Permalink
chore(sync): remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
RCmerci committed Apr 4, 2022
1 parent 33336bb commit 93be69d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 32 deletions.
1 change: 0 additions & 1 deletion src/main/frontend/components/header.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
[state]
(let [_ (state/sub :auth/id-token)
sync-state (state/sub :file-sync/sync-state)
_ (when sync-state (assert (s/valid? :frontend.fs.sync/sync-state sync-state)))
not-syncing? (or (nil? sync-state) (fs-sync/sync-state--stopped? sync-state))
*existed-graphs (::existed-graphs state)
_ (rum/react file-sync-handler/refresh-file-sync-component)
Expand Down
31 changes: 0 additions & 31 deletions src/main/frontend/components/settings.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -82,24 +82,6 @@
(util/stop e))}
svg/external-link " release channel"]])])]))

;; (rum/defc delete-account-confirm
;; [close-fn]
;; [:div
;; (ui/admonition
;; :important
;; [:p.text-gray-700 (t :user/delete-account-notice)])
;; [:div.mt-5.sm:mt-4.sm:flex.sm:flex-row-reverse
;; [:span.flex.w-full.rounded-md.sm:ml-3.sm:w-auto
;; [:button.inline-flex.justify-center.w-full.rounded-md.border.border-transparent.px-4.py-2.bg-indigo-600.text-base.leading-6.font-medium.text-white.shadow-sm.hover:bg-indigo-500.focus:outline-none.focus:border-indigo-700.focus:shadow-outline-indigo.transition.ease-in-out.duration-150.sm:text-sm.sm:leading-5
;; {:type "button"
;; :on-click user-handler/deprecated-delete-account!}
;; (t :user/delete-account)]]
;; [:span.mt-3.flex.w-full.rounded-md.sm:mt-0.sm:w-auto
;; [:button.inline-flex.justify-center.w-full.rounded-md.border.border-gray-300.px-4.py-2.bg-white.text-base.leading-6.font-medium.text-gray-700.shadow-sm.hover:text-gray-500.focus:outline-none.focus:border-blue-300.focus:shadow-outline-blue.transition.ease-in-out.duration-150.sm:text-sm.sm:leading-5
;; {:type "button"
;; :on-click close-fn}
;; "Cancel"]]]])

(rum/defc outdenting-hint
[]
[:div.ui__modal-panel
Expand Down Expand Up @@ -655,19 +637,6 @@
:target "_blank"}
"https://github.com/isomorphic-git/cors-proxy"]])])

;; (when logged?
;; [:div
;; [:hr]
;; [:div.sm:grid.sm:grid-cols-3.sm:gap-4.sm:items-center.sm:pt-5
;; [:label.block.text-sm.font-medium.leading-5.opacity-70.text-red-600.dark:text-red-400
;; {:for "delete account"}
;; (t :user/delete-account)]
;; [:div.mt-1.sm:mt-0.sm:col-span-2
;; [:div.max-w-lg.rounded-md.sm:max-w-xs
;; (ui/button (t :user/delete-your-account)
;; :on-click (fn []
;; (ui-handler/toggle-settings-modal!)
;; (js/setTimeout #(state/set-modal! delete-account-confirm))))]]]])
]))

(rum/defcs settings
Expand Down
2 changes: 2 additions & 0 deletions src/main/frontend/state.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[cljs-time.format :as tf]
[cljs.core.async :as async]
[clojure.string :as string]
[cljs.spec.alpha :as s]
[dommy.core :as dom]
[medley.core :as medley]
[electron.ipc :as ipc]
Expand Down Expand Up @@ -1674,6 +1675,7 @@
(defn set-file-sync-manager [v]
(set-state! :file-sync/sync-manager v))
(defn set-file-sync-state [v]
(when v (s/assert :frontend.fs.sync/sync-state v))
(set-state! :file-sync/sync-state v))

(defn get-file-sync-manager []
Expand Down

0 comments on commit 93be69d

Please sign in to comment.