aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/erl_lint.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-05-22 09:52:55 +0200
committerBjörn Gustavsson <[email protected]>2015-05-22 09:52:55 +0200
commit7b2fb4c6de2ccdb122af8c850d87078eb94aeafa (patch)
treea96d3d8ec0df143a32c390c226e1c71d2a9e6d65 /lib/stdlib/src/erl_lint.erl
parentbf402353a315c5e7e9f7778c9176ab22dc08aa0b (diff)
parentae108372376a09dab2427eb7e20aa665e2c3cde1 (diff)
downloadotp-7b2fb4c6de2ccdb122af8c850d87078eb94aeafa.tar.gz
otp-7b2fb4c6de2ccdb122af8c850d87078eb94aeafa.tar.bz2
otp-7b2fb4c6de2ccdb122af8c850d87078eb94aeafa.zip
Merge branch 'bjorn/stdlib/erl_lint'
* bjorn/stdlib/erl_lint: Remove final (?) vestiges of support for parameterized modules
Diffstat (limited to 'lib/stdlib/src/erl_lint.erl')
-rw-r--r--lib/stdlib/src/erl_lint.erl3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/stdlib/src/erl_lint.erl b/lib/stdlib/src/erl_lint.erl
index c68ec601bf..714c260bda 100644
--- a/lib/stdlib/src/erl_lint.erl
+++ b/lib/stdlib/src/erl_lint.erl
@@ -127,7 +127,6 @@ value_option(Flag, Default, On, OnVal, Off, OffVal, Opts) ->
recdef_top=false :: boolean(), %true in record initialisation
%outside any fun or lc
xqlc= false :: boolean(), %true if qlc.hrl included
- new = false :: boolean(), %Has user-defined 'new/N'
called= [] :: [{fa(),line()}], %Called functions
usage = #usage{} :: #usage{},
specs = dict:new() %Type specifications
@@ -642,8 +641,6 @@ forms(Forms0, St0) ->
St4 = foldl(fun form/2, pre_scan(Forms, St3), Forms),
post_traversal_check(Forms, St4).
-pre_scan([{function,_L,new,_A,_Cs} | Fs], St) ->
- pre_scan(Fs, St#lint{new=true});
pre_scan([{attribute,L,compile,C} | Fs], St) ->
case is_warn_enabled(export_all, St) andalso
member(export_all, lists:flatten([C])) of