aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2015-03-11 17:15:42 +0100
committerChristophe Romain <christophe.romain@process-one.net>2015-03-11 17:15:42 +0100
commita1a46f7df5a167455c6fbacb1246ff509f4ea2c2 (patch)
tree687570ecaa330cb6e29c86c63a54b6e4af6533b8 /src
parentCompile contributed module with lager if enabled in ejabberd (diff)
Remove unused code
Diffstat (limited to 'src')
-rw-r--r--src/ext_mod.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ext_mod.erl b/src/ext_mod.erl
index 3e6995f76..99b690255 100644
--- a/src/ext_mod.erl
+++ b/src/ext_mod.erl
@@ -293,9 +293,7 @@ extract(zip, Zip, DestDir) ->
Error -> Error
end;
extract(tar, Tar, DestDir) ->
- erl_tar:extract(Tar, [compressed, {cwd, DestDir}]);
-extract(_, _, _) ->
- {error, unknown_format}.
+ erl_tar:extract(Tar, [compressed, {cwd, DestDir}]).
extract_url(Path, DestDir) ->
hd([extract_github_master(Path, DestDir) || string:str(Path, "github") > 0]
@@ -405,8 +403,6 @@ check_sources(Module) ->
{value, {Key, Val}} -> [{invalid_meta, {Key, Val}}|Acc]
end
end, [], [author, summary, home, url]);
- {error, enoent} ->
- [];
{error, Error} ->
[{invalid_spec, Error}]
end,