From e0ca7942540836bac1e125c4034b683768037142 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Fri, 6 Jan 2023 16:39:56 -0800 Subject: [PATCH] minor fixes --- src/clj/auto_ap/square/core3.clj | 2 -- src/cljc/auto_ap/async_error.cljc | 54 ------------------------------- 2 files changed, 56 deletions(-) delete mode 100644 src/cljc/auto_ap/async_error.cljc diff --git a/src/clj/auto_ap/square/core3.clj b/src/clj/auto_ap/square/core3.clj index 559fbe20..77273b59 100644 --- a/src/clj/auto_ap/square/core3.clj +++ b/src/clj/auto_ap/square/core3.clj @@ -2,7 +2,6 @@ (:require [auto-ap.datomic :refer [conn remove-nils]] [auto-ap.time :as atime] - [auto-ap.async-error :as aerror] [clj-http.client :as client] [clj-time.coerce :as coerce] [clj-time.core :as time] @@ -16,7 +15,6 @@ [cemerick.url :as url] [datomic.api :as d] [slingshot.slingshot :refer [try+]] - [unilog.context :as lc] [manifold.executor :as ex] [manifold.deferred :as de] [manifold.time :as mt] diff --git a/src/cljc/auto_ap/async_error.cljc b/src/cljc/auto_ap/async_error.cljc deleted file mode 100644 index f749415c..00000000 --- a/src/cljc/auto_ap/async_error.cljc +++ /dev/null @@ -1,54 +0,0 @@ -(ns auto-ap.async-error - #?(:clj - (:require [clojure.core.async]))) - -;; ---- Helpers Taken from Prismatic Schema ----------------------------------- - -#?(:clj - (defn cljs-env? - "Take the &env from a macro, and tell whether we are expanding into cljs." - [env] - (boolean (:ns env)))) - -#?(:clj - (defmacro if-cljs - "Return then if we are generating cljs code and else for Clojure code. - https://groups.google.com/d/msg/clojurescript/iBY5HaQda4A/w1lAQi9_AwsJ" - [then else] - (if (cljs-env? &env) then else))) - -;; ---- Helpers --------------------------------------------------------------- - -(defn throw-err [e] - (when (instance? #?(:clj Throwable :cljs js/Error) e) (throw e)) - e) - -;; ---- Public API ------------------------------------------------------------ - -#?(:clj - (defmacro