diff options
| author | Hisham <hisham@gobolinux.org> | 2016-11-01 11:45:05 -0200 |
|---|---|---|
| committer | Hisham <hisham@gobolinux.org> | 2016-11-01 11:46:19 -0200 |
| commit | 374873ac627ca9e1c06b34688506e20b11360127 (patch) | |
| tree | 9c0553598b1ae83bd2b6d2240924ad3046a53b8a /src | |
| parent | b5b7128ed949d9a3887e020ed8a6318c67b1ab16 (diff) | |
| download | luarocks-374873ac627ca9e1c06b34688506e20b11360127.tar.gz luarocks-374873ac627ca9e1c06b34688506e20b11360127.tar.bz2 luarocks-374873ac627ca9e1c06b34688506e20b11360127.zip | |
Remove dead code
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/upload/api.lua | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/luarocks/upload/api.lua b/src/luarocks/upload/api.lua index 3e28bbda..132c1931 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 |
