From a553b8c428742b72e063c5c1cd6049611543530c Mon Sep 17 00:00:00 2001 From: yago Date: Thu, 19 Feb 2015 22:03:22 +0100 Subject: [PATCH] Removed _config.debug and table.map_length --- bot/utils.lua | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/bot/utils.lua b/bot/utils.lua index c5e9863..ec3ab82 100644 --- a/bot/utils.lua +++ b/bot/utils.lua @@ -84,14 +84,6 @@ function vardump(value, depth, key) local linePrefix = "" local spaces = "" - -- print("++++++++++ --> " .. _config.debug) - - if _config.debug ~= nil then - if _config.debug == false then - return "" - end - end - if key ~= nil then linePrefix = "["..key.."] = " end @@ -313,15 +305,4 @@ function send_document_from_url(receiver, url, cb_function, cb_extra) local file_path = download_to_file(url, false) print("File path: "..file_path) _send_document(receiver, file_path, cb_function, cb_extra) -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 - +end \ No newline at end of file