aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2012-10-16 21:37:13 -0300
committerHisham Muhammad <hisham@gobolinux.org>2012-10-16 21:37:13 -0300
commitc3cc9cd9cfd221ff32347f8ecdf790f4ffd7b42a (patch)
tree8dd95efd5a5da1b34d4fd9c6299e1d1d6fe123d6 /src
parent479ee453640cac4e375b1800f2354963129e388c (diff)
downloadluarocks-c3cc9cd9cfd221ff32347f8ecdf790f4ffd7b42a.tar.gz
luarocks-c3cc9cd9cfd221ff32347f8ecdf790f4ffd7b42a.tar.bz2
luarocks-c3cc9cd9cfd221ff32347f8ecdf790f4ffd7b42a.zip
Remove dead code
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/repos.lua16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/luarocks/repos.lua b/src/luarocks/repos.lua
index 30c61f55..27cdc67d 100644
--- a/src/luarocks/repos.lua
+++ b/src/luarocks/repos.lua
@@ -53,22 +53,6 @@ local function recurse_rock_manifest_tree(file_tree, action)
53 return do_recurse_rock_manifest_tree(file_tree, "", "") 53 return do_recurse_rock_manifest_tree(file_tree, "", "")
54end 54end
55 55
56local function store_package_data(result, name, sub, prefix)
57 assert(type(result) == "table")
58 assert(type(name) == "string")
59 assert(type(sub) == "table" or type(sub) == "string")
60 assert(type(prefix) == "string")
61
62 if type(sub) == "table" then
63 for sname, ssub in pairs(sub) do
64 store_package_data(result, sname, ssub, prefix..name.."/")
65 end
66 elseif type(sub) == "string" then
67 local pathname = prefix..name
68 result[path.path_to_module(pathname)] = pathname
69 end
70end
71
72local function store_package_data(result, name, file_tree) 56local function store_package_data(result, name, file_tree)
73 if not file_tree then return end 57 if not file_tree then return end
74 return recurse_rock_manifest_tree(file_tree, 58 return recurse_rock_manifest_tree(file_tree,