]> granicus.if.org Git - ejabberd/commitdiff
Remove unused code
authorChristophe Romain <christophe.romain@process-one.net>
Wed, 11 Mar 2015 16:15:42 +0000 (17:15 +0100)
committerChristophe Romain <christophe.romain@process-one.net>
Wed, 11 Mar 2015 16:15:42 +0000 (17:15 +0100)
src/ext_mod.erl

index 3e6995f76ff89275b92d9fe2cfc5126fce36981c..99b690255b832b18f11ebd750058b16e6753415a 100644 (file)
@@ -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,