Skip to content

Commit f180b13

Browse files
committed
lint cleanup - remove unused code
1 parent 572d58e commit f180b13

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

src/main/clojure/clojure/core/async/impl/ioc_macros.clj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
[clojure.tools.analyzer.passes.jvm.annotate-loops :refer [annotate-loops]]
2020
[clojure.tools.analyzer.passes.jvm.warn-on-reflection :refer [warn-on-reflection]]
2121
[clojure.tools.analyzer.jvm :as an-jvm]
22-
[clojure.core.async.impl.protocols :as impl]
2322
[clojure.core.async.impl.runtime :as rt]
2423
[clojure.set :as set])
2524
(:import [java.util.concurrent.atomic AtomicReferenceArray]))

src/main/clojure/clojure/core/async/impl/runtime.clj

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -85,33 +85,6 @@
8585
:recur)
8686
nil))
8787

88-
(defn run-state-machine [state]
89-
((aget-object state FN-IDX) state))
90-
91-
(defn run-state-machine-wrapped [state]
92-
(try
93-
(run-state-machine state)
94-
(catch Throwable ex
95-
(impl/close! (aget-object state USER-START-IDX))
96-
(throw ex))))
97-
98-
(defn take! [state blk c]
99-
(if-let [cb (impl/take! c (fn-handler
100-
(fn [x]
101-
(aset-all! state VALUE-IDX x STATE-IDX blk)
102-
(run-state-machine-wrapped state))))]
103-
(do (aset-all! state VALUE-IDX @cb STATE-IDX blk)
104-
:recur)
105-
nil))
106-
107-
(defn put! [state blk c val]
108-
(if-let [cb (impl/put! c val (fn-handler (fn [ret-val]
109-
(aset-all! state VALUE-IDX ret-val STATE-IDX blk)
110-
(run-state-machine-wrapped state))))]
111-
(do (aset-all! state VALUE-IDX @cb STATE-IDX blk)
112-
:recur)
113-
nil))
114-
11588
(defn return-chan [state value]
11689
(let [c (aget-object state USER-START-IDX)]
11790
(when-not (nil? value)

0 commit comments

Comments
 (0)