Removed _config.debug and table.map_length

This commit is contained in:
yago 2015-02-19 22:03:22 +01:00
parent 16c51485bc
commit a553b8c428

View File

@ -84,14 +84,6 @@ function vardump(value, depth, key)
local linePrefix = "" local linePrefix = ""
local spaces = "" local spaces = ""
-- print("++++++++++ --> " .. _config.debug)
if _config.debug ~= nil then
if _config.debug == false then
return ""
end
end
if key ~= nil then if key ~= nil then
linePrefix = "["..key.."] = " linePrefix = "["..key.."] = "
end end
@ -313,15 +305,4 @@ function send_document_from_url(receiver, url, cb_function, cb_extra)
local file_path = download_to_file(url, false) local file_path = download_to_file(url, false)
print("File path: "..file_path) print("File path: "..file_path)
_send_document(receiver, file_path, cb_function, cb_extra) _send_document(receiver, file_path, cb_function, cb_extra)
end end
-- http://stackoverflow.com/a/14377694/156869
-- get length of an array
function table.map_length(t)
local c = 0
for k,v in pairs(t) do
c = c+1
end
return c
end