aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2012-10-03 17:53:56 -0300
committerHisham Muhammad <hisham@gobolinux.org>2012-10-03 17:53:56 -0300
commite457e70e65f7d1d19af6a6717601fc57175648b8 (patch)
tree5895bab7f1f5666298054219ab01ca0e59795de3 /src
parent93185e7a5d602635c278c8e218dd6b7ad29fade1 (diff)
downloadluarocks-e457e70e65f7d1d19af6a6717601fc57175648b8.tar.gz
luarocks-e457e70e65f7d1d19af6a6717601fc57175648b8.tar.bz2
luarocks-e457e70e65f7d1d19af6a6717601fc57175648b8.zip
Remove dead code.
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/command_line.lua12
1 files changed, 0 insertions, 12 deletions
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)
21 os.exit(1) 21 os.exit(1)
22end 22end
23 23
24local function is_writable(tree)
25 if type(tree) == "string" then
26 return fs.make_dir(tree) and fs.is_writable(tree)
27 else
28 writable = true
29 for k, v in pairs(tree) do
30 writable = writable and fs.make_dir(v) and fs.is_writable(v)
31 end
32 return writable
33 end
34end
35
36--- Main command-line processor. 24--- Main command-line processor.
37-- Parses input arguments and calls the appropriate driver function 25-- Parses input arguments and calls the appropriate driver function
38-- to execute the action requested on the command-line, forwarding 26-- to execute the action requested on the command-line, forwarding