Skip to content

Commit

Permalink
Eliminate indirection
Browse files Browse the repository at this point in the history
  • Loading branch information
Espen Wiborg committed Mar 4, 2009
1 parent 98829f5 commit 212c2cf
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/main/lisp/malabar-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -430,12 +430,8 @@ return the corresponding cdr."
(let* ((class-name (match-string-no-properties 2))
(class-file (malabar-class-name-to-filename class-name)))
(list
(malabar-locate-file
class-file
malabar-compilation-project-test-source-directories))))

(defun malabar-locate-file (file directories)
(locate-file file directories))
(locate-file class-file
malabar-compilation-project-test-source-directories))))

(defvar malabar-test-class-suffix "Test")

Expand All @@ -458,7 +454,7 @@ return the corresponding cdr."
(malabar-maven-find-project-file buffer))))
(funcall
(if silent #'find-file-noselect #'find-file)
(or (malabar-locate-file class-file test-source-directories)
(or (locate-file class-file test-source-directories)
(expand-file-name class-file (car test-source-directories))))))))

(defun malabar-run-test-internal (test-starter)
Expand Down

0 comments on commit 212c2cf

Please sign in to comment.