 (defn get-build-config [id]
   {:pre [(keyword? id)]}
   (config/get-build! id))
-
-(defn dev*
-  [build-config {:keys [autobuild] :as opts}]
-  (let [config
-        (config/load-cljs-edn)
-
-        {:keys [out supervisor] :as app}
-        (runtime/get-instance!)]
-
-    (-> (get-or-start-worker build-config opts)
-        (worker/watch out false)
-        (worker/start-autobuild)
-        (worker/sync!)
-        (repl-impl/stdin-takeover! app))
-
-    (super/stop-worker supervisor (:build-id build-config))
-    :done))
-
-(defn dev
-  ([build]
-   (dev build {:autobuild true}))
-  ([build {:keys [autobuild] :as opts}]
-   (try
-     (let [build-config (config/get-build! build)]
-       (dev* build-config opts))
-     (catch Exception e
-       (e/user-friendly-error e)))))
 
 (defn build-finish [{::build/keys [build-info] :as state} config]
   (util/print-build-complete build-info config)

        (println "To quit, type: :repl/quit")
        [:selected id])))


(defn repl [build-id]
  (if *nrepl-active*
    (nrepl-select build-id)

     (catch Exception e
       (e/user-friendly-error e)))))

(defn nrepl-select [id]
  (if-not (get-worker id)
    [:no-worker id]
