          (finally
            (reset! cljs/*loaded* runtime-loaded)))))))
 
-(comment
-  ;; testing modules
-  (build "samples/hello/src"
-    {:optimizations :advanced
-     :output-dir "samples/hello/out"
-     :source-map true
-     :modules
-     {:hello
-      {:output-to "samples/hello/out/hello.js"
-       :entries '#{cljs.reader hello.core}}}})
-
-  (require '[cljs.externs :as externs])
-
-  (externs/parse-externs
-    (js-source-file "cljs/externs.js" (io/file "src/main/cljs/cljs/externs.js")))
-  )
-
-(defn ^File target-file-for-cljs-ns
+(defn target-file-for-cljs-ns
   [ns-sym output-dir]
   (util/to-target-file
     (util/output-directory {:output-dir output-dir})

          (add-externs-sources (dissoc opts :foreign-libs))))))
  ([source opts compiler-env]
   (env/with-compiler-env compiler-env
     ;; we need to preserve the runtime loaded namespace and we restore them
     ;; in case of error, I think.
     (let [runtime-loaded @cljs/*loaded*
           orig-opts opts
           opts (add-implicit-options opts)

       (doseq [path paths]
         (watch-all path))))))

;; =============================================================================
;; Utilities

