Permalink
Browse files

Remove Java dependency

  • Loading branch information...
1 parent 125b2fe commit 9d7eff864a3f02d927996000df9fb24602406a3a @joeyates committed Jan 15, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/sloccount/files.clj
View
@@ -11,9 +11,6 @@
#(.isFile %)
(file-seq (clojure.java.io/file (.toString path))))))
-(defn file-empty? [file]
- (= (.length (clojure.java.io/file (.toString file))) 0))
-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; File selection
@@ -83,6 +80,9 @@
(is-shebang? rdr)
:unknown)))
+(defn file-empty? [filename]
+ (= (.length (clojure.java.io/file filename)) 0))
+
(defn file-type [file]
(let [filename (.toString file)]
(or

0 comments on commit 9d7eff8

Please sign in to comment.