aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-11-01 11:45:05 -0200
committerHisham <hisham@gobolinux.org>2016-11-01 11:45:05 -0200
commit7b65bd024b5dbe14bdbf4b3b348223c6639bfe62 (patch)
treec232360c40e2ceb1fac0c79e5538d86a19c9daed
parentba1ba4be6e0ecc6936c49fae38c71e22250ceb65 (diff)
downloadluarocks-7b65bd024b5dbe14bdbf4b3b348223c6639bfe62.tar.gz
luarocks-7b65bd024b5dbe14bdbf4b3b348223c6639bfe62.tar.bz2
luarocks-7b65bd024b5dbe14bdbf4b3b348223c6639bfe62.zip
Remove dead code
-rw-r--r--src/luarocks/upload/api.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/luarocks/upload/api.lua b/src/luarocks/upload/api.lua
index 6df24569..fdc4ee63 100644
--- a/src/luarocks/upload/api.lua
+++ b/src/luarocks/upload/api.lua
@@ -147,8 +147,6 @@ function Api:request(url, params, post_params)
147 if not self.config.key then 147 if not self.config.key then
148 return nil, "Must have API key before performing any actions." 148 return nil, "Must have API key before performing any actions."
149 end 149 end
150 local body
151 local headers = {}
152 if params and next(params) then 150 if params and next(params) then
153 url = url .. ("?" .. encode_query_string(params)) 151 url = url .. ("?" .. encode_query_string(params))
154 end 152 end
@@ -215,7 +213,6 @@ function Api:request(url, params, post_params)
215 warned_luasec = true 213 warned_luasec = true
216 end 214 end
217 http_ok, http = pcall(require, "socket.http") 215 http_ok, http = pcall(require, "socket.http")
218 server = server:gsub("^https", "http")
219 url = url:gsub("^https", "http") 216 url = url:gsub("^https", "http")
220 via = "luasocket" 217 via = "luasocket"
221 end 218 end