         ))))
 
 (defn update-rc-from-ns
-  [state rc {:keys [name require-order require-macros use-macros] :as ast}]
+  [state rc {:keys [name require-order] :as ast}]
   {:pre [(compiler-state? state)]}
   (let [require-order
         (if (= 'cljs.core name)

        :require-order (into [] (map munge-goog-ns) (.getRequires deps))
        :provides (into #{} (map munge-goog-ns) (.getProvides deps))))))

(defn rewrite-clojure-requires
  [{:keys [requires uses require-order] :as ast}
   {:keys [ns-alias-fn] :as state}]
  (let [should-rewrite

          (if (identical? peek eof-sentinel)
            (throw (ex-info "file is empty" {:name name}))
            (let [ast (-> (util/parse-ns peek)
                          (rewrite-ns-aliases state))]
              (-> state
                  (update-rc-from-ns rc ast)
                  (assoc :cljc cljc?)))))
