Diff

util/pubsub.lua @ 8382:e5d00bf4a4d5

util: Various minor changes to please [luacheck]
author Kim Alvefur <zash@zash.se>
date Fri, 10 Nov 2017 05:42:32 +0100
parent 8376:eb6a9c314c86
child 8401:f1923a79c93d
line wrap: on
line diff
--- a/util/pubsub.lua	Fri Nov 10 05:34:29 2017 +0100
+++ b/util/pubsub.lua	Fri Nov 10 05:42:32 2017 +0100
@@ -177,18 +177,6 @@
 	return true;
 end
 
-function service:remove_all_subscriptions(actor, jid)
-	local normal_jid = self.config.normalize_jid(jid);
-	local subs = self.subscriptions[normal_jid]
-	subs = subs and subs[jid];
-	if subs then
-		for node in pairs(subs) do
-			self:remove_subscription(node, true, jid);
-		end
-	end
-	return true;
-end
-
 function service:get_subscription(node, actor, jid)
 	-- Access checking
 	local cap;