diff options
author | Björn Gustavsson <[email protected]> | 2011-09-05 09:21:11 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2011-11-24 15:17:51 +0100 |
commit | bc1f3ce3b707f25397a1ff484d34ee406e0db73b (patch) | |
tree | 96ef9e61d9f8318e8d66ae90c366d5b644ad82c0 | |
parent | 04d1fc553183c020bee29db6d3e2af8dc5b7053a (diff) | |
download | otp-bc1f3ce3b707f25397a1ff484d34ee406e0db73b.tar.gz otp-bc1f3ce3b707f25397a1ff484d34ee406e0db73b.tar.bz2 otp-bc1f3ce3b707f25397a1ff484d34ee406e0db73b.zip |
filename: Eliminate failing call to Mod:module_info(source_file)
Mod:module_info(source_file) is no longer supported (and have not
been for a long time), so calling it will always fail.
-rw-r--r-- | lib/stdlib/src/filename.erl | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/stdlib/src/filename.erl b/lib/stdlib/src/filename.erl index acd7985c16..7144781843 100644 --- a/lib/stdlib/src/filename.erl +++ b/lib/stdlib/src/filename.erl @@ -873,12 +873,7 @@ filter_options(_Base, [], Result) -> %% Gets the source file given path of object code and module name. get_source_file(Obj, Mod, Rules) -> - case catch Mod:module_info(source_file) of - {'EXIT', _Reason} -> - source_by_rules(dirname(Obj), packages:last(Mod), Rules); - File -> - {ok, File} - end. + source_by_rules(dirname(Obj), packages:last(Mod), Rules). source_by_rules(Dir, Base, [{From, To}|Rest]) -> case try_rule(Dir, Base, From, To) of |