Software /
code /
prosody
Comparison
core/loggingmanager.lua @ 5001:78a3d275715a
loggingmanager: Remove unused variables
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 24 Jul 2012 15:50:11 +0100 |
parent | 4627:b046cafc81a8 |
child | 5272:1e555909f23d |
comparison
equal
deleted
inserted
replaced
5000:58c9519dc461 | 5001:78a3d275715a |
---|---|
5 -- This project is MIT/X11 licensed. Please see the | 5 -- This project is MIT/X11 licensed. Please see the |
6 -- COPYING file in the source package for more information. | 6 -- COPYING file in the source package for more information. |
7 -- | 7 -- |
8 | 8 |
9 | 9 |
10 local format, rep = string.format, string.rep; | 10 local format = string.format; |
11 local pcall = pcall; | 11 local setmetatable, rawset, pairs, ipairs, type = |
12 local debug = debug; | 12 setmetatable, rawset, pairs, ipairs, type; |
13 local tostring, setmetatable, rawset, pairs, ipairs, type = | |
14 tostring, setmetatable, rawset, pairs, ipairs, type; | |
15 local io_open, io_write = io.open, io.write; | 13 local io_open, io_write = io.open, io.write; |
16 local math_max, rep = math.max, string.rep; | 14 local math_max, rep = math.max, string.rep; |
17 local os_date, os_getenv = os.date, os.getenv; | 15 local os_date = os.date; |
18 local getstyle, setstyle = require "util.termcolours".getstyle, require "util.termcolours".setstyle; | 16 local getstyle, setstyle = require "util.termcolours".getstyle, require "util.termcolours".setstyle; |
19 | 17 |
20 if os.getenv("__FLUSH_LOG") then | 18 if os.getenv("__FLUSH_LOG") then |
21 local io_flush = io.flush; | 19 local io_flush = io.flush; |
22 local _io_write = io_write; | 20 local _io_write = io_write; |