summaryrefslogtreecommitdiff
path: root/src/rebar_core.erl
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2009-12-14 08:58:22 -0500
committerDave Smith <dizzyd@dizzyd.com>2009-12-14 08:58:22 -0500
commitd6600ab506276f3a5aa65b0aaafc62bc7826c213 (patch)
treeafc2a24743a7d5383be752e55a4b2eb0b346592a /src/rebar_core.erl
parent2b7971cc6bb672422c4c9681f4192dd554443014 (diff)
Fixing number of warnings and buglets
Diffstat (limited to 'src/rebar_core.erl')
-rw-r--r--src/rebar_core.erl9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/rebar_core.erl b/src/rebar_core.erl
index 373a7e8..c5a3dc6 100644
--- a/src/rebar_core.erl
+++ b/src/rebar_core.erl
@@ -48,11 +48,6 @@ run(Args) ->
%% Filter all the flags (i.e. string of form key=value) from the
%% command line arguments. What's left will be the commands to run.
Commands = filter_flags(Args, []),
-
-% dbg:tracer(),
- dbg:p(all, call),
- dbg:tpl(rebar_core, []),
- dbg:tpl(rebar_erlc_compiler, clean, []),
%% Pre-load the rebar app so that we get default configuration
ok = application:load(rebar),
@@ -160,7 +155,7 @@ rel_dir(Dir) ->
-apply_commands([], Modules, Config, ModuleFile) ->
+apply_commands([], _Modules, _Config, _ModuleFile) ->
ok;
apply_commands([Command | Rest], Modules, Config, ModuleFile) ->
case select_modules(Modules, Command, []) of
@@ -207,7 +202,7 @@ expand_lib_dirs([], _Root, Acc) ->
expand_lib_dirs([Dir | Rest], Root, Acc) ->
Apps = filelib:wildcard(filename:join([Dir, '*', ebin])),
FqApps = [filename:join([Root, A]) || A <- Apps],
- expand_lib_dirs(Rest, Root, Apps ++ FqApps).
+ expand_lib_dirs(Rest, Root, Acc ++ FqApps).