diff options
author | Kim Alvefur <zash@zash.se> | 2017-11-10 05:42:32 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-11-10 05:42:32 +0100 |
commit | 1438a3884507b709cba08691d329b0cf137f4bd4 (patch) | |
tree | 9186c5db947b241b5590afab18bd6e720f95046a /util/pubsub.lua | |
parent | 8962abd55b75a572b0e5821f11cd3342e09b113b (diff) | |
download | prosody-1438a3884507b709cba08691d329b0cf137f4bd4.tar.gz prosody-1438a3884507b709cba08691d329b0cf137f4bd4.zip |
util: Various minor changes to please [luacheck]
Diffstat (limited to 'util/pubsub.lua')
-rw-r--r-- | util/pubsub.lua | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua index 2f42809e..8122e2f2 100644 --- a/util/pubsub.lua +++ b/util/pubsub.lua @@ -177,18 +177,6 @@ function service:remove_subscription(node, actor, jid) 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; |