Comparison

util/json.lua @ 7259:d8300985f2bb

net.websocket.frames, util.datetime, util.json, util.prosodyctl, util.rfc6724: Remove unused variables [luacheck]
author Matthew Wild <mwild1@gmail.com>
date Thu, 10 Mar 2016 17:52:03 +0000
parent 7235:ee1f7e1e548c
child 7261:925f848c706d
comparison
equal deleted inserted replaced
7258:b8f60dd8e99a 7259:d8300985f2bb
10 local t_insert, t_concat, t_remove, t_sort = table.insert, table.concat, table.remove, table.sort; 10 local t_insert, t_concat, t_remove, t_sort = table.insert, table.concat, table.remove, table.sort;
11 local s_char = string.char; 11 local s_char = string.char;
12 local tostring, tonumber = tostring, tonumber; 12 local tostring, tonumber = tostring, tonumber;
13 local pairs, ipairs = pairs, ipairs; 13 local pairs, ipairs = pairs, ipairs;
14 local next = next; 14 local next = next;
15 local error = error;
16 local getmetatable, setmetatable = getmetatable, setmetatable; 15 local getmetatable, setmetatable = getmetatable, setmetatable;
17 local print = print; 16 local print = print;
18 17
19 local has_array, array = pcall(require, "util.array"); 18 local has_array, array = pcall(require, "util.array");
20 local array_mt = has_array and getmetatable(array()) or {}; 19 local array_mt = has_array and getmetatable(array()) or {};