Skip to content

Commit

Permalink
Remove unused 'robust-read-project (superceded by 'robust-read-projec…
Browse files Browse the repository at this point in the history
…t-blob
  • Loading branch information
Chouser committed Jan 2, 2014
1 parent 880dfb1 commit dcacf74
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/leiningen/voom.clj
Expand Up @@ -384,20 +384,6 @@
;; Shhh... ;; Shhh...
(.setDynamic #'slurp) (.setDynamic #'slurp)
(.setDynamic #'load-file) (.setDynamic #'load-file)
(defn robust-read-project
[gitdir sha prj-path]
(try
;; Hack to work around our crazy project.clj files
(binding [slurp (patch-fn slurp "{}")
load-file (patch-fn load-file {})]
(read-project gitdir sha prj-path))
(catch Exception e
;; 128 means git complained about
;; something. Probably a non-existant
;; project.clj at this sha.
(when-not (= 128 (:exit (ex-data e)))
(println "Ignoring error:" (pr-str e)))
nil)))
(defn robust-read-proj-blob (defn robust-read-proj-blob
[gitdir blob-sha] [gitdir blob-sha]
;; Hack to work around crazy project.clj files ;; Hack to work around crazy project.clj files
Expand Down

0 comments on commit dcacf74

Please sign in to comment.