Software /
code /
prosody
Comparison
core/moduleapi.lua @ 4747:3f526f84dbbd
moduleapi: Remove unused variable 'module_items'
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 28 Apr 2012 02:24:41 +0100 |
parent | 4719:2087d42f1e77 |
child | 4750:b3525f3c2fee |
comparison
equal
deleted
inserted
replaced
4746:37020f4b6799 | 4747:3f526f84dbbd |
---|---|
253 end | 253 end |
254 | 254 |
255 return set.new(value); | 255 return set.new(value); |
256 end | 256 end |
257 | 257 |
258 local module_items = multitable_new(); | |
259 function api:add_item(key, value) | 258 function api:add_item(key, value) |
260 self.items = self.items or {}; | 259 self.items = self.items or {}; |
261 self.items[key] = self.items[key] or {}; | 260 self.items[key] = self.items[key] or {}; |
262 t_insert(self.items[key], value); | 261 t_insert(self.items[key], value); |
263 self:fire_event("item-added/"..key, {source = self, item = value}); | 262 self:fire_event("item-added/"..key, {source = self, item = value}); |