Changeset

3742:05bca7a771d6

mod_bookmarks2: Remove unused variables.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 13 Nov 2019 16:45:48 +0100
parents 3741:33b3e2387a10
children 3743:5eab799b5fa4
files mod_bookmarks2/mod_bookmarks2.lua
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mod_bookmarks2/mod_bookmarks2.lua	Wed Nov 13 16:40:09 2019 +0100
+++ b/mod_bookmarks2/mod_bookmarks2.lua	Wed Nov 13 16:45:48 2019 +0100
@@ -9,9 +9,6 @@
 local mod_pep = module:depends "pep";
 local private_storage = module:open_store("private", "map");
 
-local legacy_ns = "storage:bookmarks";
-local ns = "urn:xmpp:bookmarks:0";
-
 local default_options = {
 	["persist_items"] = true;
 	-- This should be much higher, the XEP recommends 10000 but mod_pep rejects that.
@@ -193,7 +190,7 @@
 		return;
 	end
 
-	local bookmarks = query:get_child("storage", legacy_ns);
+	local bookmarks = query:get_child("storage", "storage:bookmarks");
 	if bookmarks == nil then
 		return;
 	end