aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2011-09-05 09:17:14 +0200
committerBjörn Gustavsson <[email protected]>2011-11-24 15:17:51 +0100
commit04d1fc553183c020bee29db6d3e2af8dc5b7053a (patch)
treed89bd976909e086b79af6155ecc5af3fef05c4f8 /lib/stdlib/src
parent02c4d9a4a08ebb511833539e3937593fb956a6c9 (diff)
downloadotp-04d1fc553183c020bee29db6d3e2af8dc5b7053a.tar.gz
otp-04d1fc553183c020bee29db6d3e2af8dc5b7053a.tar.bz2
otp-04d1fc553183c020bee29db6d3e2af8dc5b7053a.zip
filename.erl:filter_options/1: Remove handling of dead options
The 'trace' and 'fast' options are no longer supported. While at it, correct the comment about option filtering.
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/filename.erl7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/stdlib/src/filename.erl b/lib/stdlib/src/filename.erl
index 2fc9128e4e..acd7985c16 100644
--- a/lib/stdlib/src/filename.erl
+++ b/lib/stdlib/src/filename.erl
@@ -844,8 +844,7 @@ try_file(Src, _ObjFilename, Mod, _Rules) ->
%% Filters the options.
%%
-%% 1) Remove options that have no effect on the generated code,
-%% such as report and verbose.
+%% 1) Only keep options that have any effect on code generation.
%%
%% 2) The paths found in {i, Path} and {outdir, Path} are converted
%% to absolute paths. When doing this, it is assumed that relatives
@@ -857,14 +856,10 @@ filter_options(Base, [{outdir, Path}|Rest], Result) ->
filter_options(Base, Rest, [{outdir, make_abs_path(Base, Path)}|Result]);
filter_options(Base, [{i, Path}|Rest], Result) ->
filter_options(Base, Rest, [{i, make_abs_path(Base, Path)}|Result]);
-filter_options(Base, [Option|Rest], Result) when Option =:= trace ->
- filter_options(Base, Rest, [Option|Result]);
filter_options(Base, [Option|Rest], Result) when Option =:= export_all ->
filter_options(Base, Rest, [Option|Result]);
filter_options(Base, [Option|Rest], Result) when Option =:= binary ->
filter_options(Base, Rest, [Option|Result]);
-filter_options(Base, [Option|Rest], Result) when Option =:= fast ->
- filter_options(Base, Rest, [Option|Result]);
filter_options(Base, [Tuple|Rest], Result) when element(1, Tuple) =:= d ->
filter_options(Base, Rest, [Tuple|Result]);
filter_options(Base, [Tuple|Rest], Result)