Comparison

core/sessionmanager.lua @ 4981:95c18750b89e

sessionmanager: Clean up some unused variables and imports
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Jul 2012 23:38:21 +0100
parent 4961:29b24a4028ed
child 4993:5243b74a4cbb
comparison
equal deleted inserted replaced
4980:2e35cfe11835 4981:95c18750b89e
4 -- 4 --
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 local tonumber, tostring, setmetatable = tonumber, tostring, setmetatable; 9 local tostring, setmetatable = tostring, setmetatable;
10 local ipairs, pairs, print, next= ipairs, pairs, print, next; 10 local pairs, next= pairs, next;
11 11
12 local hosts = hosts; 12 local hosts = hosts;
13 local full_sessions = full_sessions; 13 local full_sessions = full_sessions;
14 local bare_sessions = bare_sessions; 14 local bare_sessions = bare_sessions;
15 15
16 local logger = require "util.logger"; 16 local logger = require "util.logger";
17 local log = logger.init("sessionmanager"); 17 local log = logger.init("sessionmanager");
18 local error = error;
19 local rm_load_roster = require "core.rostermanager".load_roster; 18 local rm_load_roster = require "core.rostermanager".load_roster;
20 local config_get = require "core.configmanager".get; 19 local config_get = require "core.configmanager".get;
21 local resourceprep = require "util.encodings".stringprep.resourceprep; 20 local resourceprep = require "util.encodings".stringprep.resourceprep;
22 local nodeprep = require "util.encodings".stringprep.nodeprep; 21 local nodeprep = require "util.encodings".stringprep.nodeprep;
23 local uuid_generate = require "util.uuid".generate; 22 local uuid_generate = require "util.uuid".generate;
24 23
25 local initialize_filters = require "util.filters".initialize; 24 local initialize_filters = require "util.filters".initialize;
26 local fire_event = prosody.events.fire_event;
27 local add_task = require "util.timer".add_task;
28 local gettime = require "socket".gettime; 25 local gettime = require "socket".gettime;
29
30 local st = require "util.stanza";
31 26
32 local newproxy = newproxy; 27 local newproxy = newproxy;
33 local getmetatable = getmetatable; 28 local getmetatable = getmetatable;
34 29
35 module "sessionmanager" 30 module "sessionmanager"