🔥 Remove unused code.

This commit is contained in:
Andrey Antukh 2021-01-30 11:31:51 +01:00 committed by Alonso Torres
parent c62bc408dc
commit 43b8743569
7 changed files with 5 additions and 238 deletions

View file

@ -15,7 +15,6 @@
[app.config :as cfg]
[app.db :as db]
[app.main :as main]
[app.media-storage]
[app.media]
[app.migrations]
[app.rpc.mutations.files :as files]
@ -23,7 +22,6 @@
[app.rpc.mutations.projects :as projects]
[app.rpc.mutations.teams :as teams]
[app.util.blob :as blob]
[app.util.storage :as ust]
[clojure.java.io :as io]
[clojure.spec.alpha :as s]
[cuerdas.core :as str]
@ -46,7 +44,6 @@
:app.http.auth/google
:app.http.auth/gitlab
:app.worker/scheduler
:app.worker/executor
:app.worker/worker))
_ (ig/load-namespaces config)
system (-> (ig/prep config)
@ -70,10 +67,7 @@
(db/exec! conn [(str "TRUNCATE "
(apply str (interpose ", " result))
" CASCADE;")]))))
(try
(next)
(finally
(ust/clear! (:app.media-storage/storage *system*)))))
(next))
(defn mk-uuid
[prefix & args]

View file

@ -14,8 +14,7 @@
[app.common.uuid :as uuid]
[app.db :as db]
[app.http :as http]
[app.tests.helpers :as th]
[app.util.storage :as ust]))
[app.tests.helpers :as th]))
(t/use-fixtures :once th/state-init)
(t/use-fixtures :each th/database-reset)

View file

@ -13,8 +13,7 @@
[datoteka.core :as fs]
[app.common.uuid :as uuid]
[app.db :as db]
[app.tests.helpers :as th]
[app.util.storage :as ust]))
[app.tests.helpers :as th]))
(t/use-fixtures :once th/state-init)
(t/use-fixtures :each th/database-reset)

View file

@ -15,7 +15,6 @@
[cuerdas.core :as str]
[datoteka.core :as fs]
[app.db :as db]
;; [app.services.mutations.profile :as profile]
[app.tests.helpers :as th]))
(t/use-fixtures :once th/state-init)
@ -64,8 +63,8 @@
(t/testing "update profile"
(let [data (assoc profile
:profile-id (:id profile)
::th/type :update-profile
:profile-id (:id profile)
:fullname "Full Name"
:lang "en"
:theme "dark")

View file

@ -13,8 +13,7 @@
[datoteka.core :as fs]
[app.common.uuid :as uuid]
[app.db :as db]
[app.tests.helpers :as th]
[app.util.storage :as ust]))
[app.tests.helpers :as th]))
(t/use-fixtures :once th/state-init)
(t/use-fixtures :each th/database-reset)