summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuhani Rankimies <juhani@juranki.com>2010-10-26 07:13:24 +0300
committerDave Smith <dizzyd@dizzyd.com>2010-10-27 11:39:12 -0600
commit75fc2378bf006b5660ce2115561d36bea10e04c5 (patch)
tree92c9ba95ca94735203c75b4ea199ad8c885f13bc /src
parentff5581c44a9b12504c14e9dc092b305d0eeddd8d (diff)
Remove unused functions from rebar_file_utils
mkdir_p/1 and ln_sf/2.
Diffstat (limited to 'src')
-rw-r--r--src/rebar_file_utils.erl16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/rebar_file_utils.erl b/src/rebar_file_utils.erl
index ae1f376..429f478 100644
--- a/src/rebar_file_utils.erl
+++ b/src/rebar_file_utils.erl
@@ -27,9 +27,7 @@
-module(rebar_file_utils).
-export([rm_rf/1,
- mkdir_p/1,
cp_r/2,
- ln_sf/2,
delete_each/1]).
-include("rebar.hrl").
@@ -42,25 +40,11 @@ rm_rf(Target) ->
[] = os:cmd(?FMT("rm -rf ~s", [Target])),
ok.
-mkdir_p(Target) ->
- [] = os:cmd(?FMT("mkdir -p ~s", [Target])),
- ok.
-
cp_r(Sources, Dest) ->
SourceStr = string:join(Sources, " "),
[] = os:cmd(?FMT("cp -R ~s ~s", [SourceStr, Dest])),
ok.
-ln_sf(Source, Dest) ->
- case filelib:is_dir(Dest) of
- true ->
- ActualDest = filename:join([Dest, filename:basename(Source)]);
- false ->
- ActualDest = Dest
- end,
- [] = os:cmd(?FMT("ln -sf ~s ~s", [Source, ActualDest])),
- ok.
-
delete_each([]) ->
ok;
delete_each([File | Rest]) ->