Changeset

3473:fd889eb16541

mod_bookmarks: Remove unused bookmarks/updated event
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 06 Mar 2019 00:59:18 +0100
parents 3472:ac1f63cdb6d6
children 3474:c3b886331de7
files mod_bookmarks/mod_bookmarks.lua
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mod_bookmarks/mod_bookmarks.lua	Thu Feb 28 12:31:54 2019 +0100
+++ b/mod_bookmarks/mod_bookmarks.lua	Wed Mar 06 00:59:18 2019 +0100
@@ -120,10 +120,6 @@
 	module:log("debug", "Removed private bookmarks of %s, migration done!", jid);
 end
 
-local function on_item_published(event)
-	module:fire_event("bookmarks/updated", event);
-end
-
 local function on_node_created(event)
 	local service, node, actor = event.service, event.node, event.actor;
 	if node ~= "storage:bookmarks" then
@@ -143,7 +139,6 @@
 	end
 end, 1);
 module:hook("resource-bind", on_resource_bind);
-module:hook("item-published/storage:bookmarks", on_item_published);
 module:handle_items("pep-service", function (event)
 	local service = event.item.service;
 	module:hook_object_event(service.events, "node-created", on_node_created);