diff mod_bookmarks/mod_bookmarks.lua @ 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 7155cc1adf8f
children 4ce945490a24
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);