diff --git a/demo/reagentdemo/syntax.clj b/demo/reagentdemo/syntax.clj index 0d9b6c3..7c7f8da 100644 --- a/demo/reagentdemo/syntax.clj +++ b/demo/reagentdemo/syntax.clj @@ -1,6 +1,5 @@ (ns reagentdemo.syntax - (:require [clojure.java.io :as io] - [clojure.string :as string])) + (:require [clojure.string :as string])) ;;; Source splitting diff --git a/src/reagent/interop.clj b/src/reagent/interop.clj index 76a9262..6c41037 100644 --- a/src/reagent/interop.clj +++ b/src/reagent/interop.clj @@ -1,6 +1,5 @@ (ns reagent.interop - (:require [clojure.string :as string :refer [join]] - [clojure.java.io :as io])) + (:require [clojure.string :as string :refer [join]])) (defn- js-call [f args] (let [argstr (->> (repeat (count args) "~{}") @@ -55,21 +54,3 @@ (let [[field names] (dot-args object field)] (assert field (str "Field name must start with - in " field)) `(aset ~object ~@names ~value))) - -(defmacro .' [& args] - ;; Deprecated since names starting with . cause problems with bootstrapped cljs. - (let [ns (str cljs.analyzer/*cljs-ns*) - line (:line (meta &form))] - (binding [*out* *err*] - (println "WARNING: reagent.interop/.' is deprecated in " ns " line " line - ". Use reagent.interop/$ instead."))) - `($ ~@args)) - -(defmacro .! [& args] - ;; Deprecated since names starting with . cause problems with bootstrapped cljs. - (let [ns (str cljs.analyzer/*cljs-ns*) - line (:line (meta &form))] - (binding [*out* *err*] - (println "WARNING: reagent.interop/.! is deprecated in " ns " line " line - ". Use reagent.interop/$! instead."))) - `($! ~@args))