From e457e70e65f7d1d19af6a6717601fc57175648b8 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 3 Oct 2012 17:53:56 -0300 Subject: Remove dead code. --- src/luarocks/command_line.lua | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src') diff --git a/src/luarocks/command_line.lua b/src/luarocks/command_line.lua index 8fa9073c..d08ffdfe 100644 --- a/src/luarocks/command_line.lua +++ b/src/luarocks/command_line.lua @@ -21,18 +21,6 @@ local function die(message) os.exit(1) end -local function is_writable(tree) - if type(tree) == "string" then - return fs.make_dir(tree) and fs.is_writable(tree) - else - writable = true - for k, v in pairs(tree) do - writable = writable and fs.make_dir(v) and fs.is_writable(v) - end - return writable - end -end - --- Main command-line processor. -- Parses input arguments and calls the appropriate driver function -- to execute the action requested on the command-line, forwarding -- cgit v1.2.3-55-g6feb