Software /
code /
prosody
Diff
core/moduleapi.lua @ 8533:66cdf5c7af85
moduleapi: Remove unused and undocumented :has_feature and :has_identity
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 23 Feb 2018 17:11:59 +0100 |
parent | 8487:91f6815de26a |
child | 8993:bd9b67f742c9 |
line wrap: on
line diff
--- a/core/moduleapi.lua Fri Feb 23 17:10:21 2018 +0100 +++ b/core/moduleapi.lua Fri Feb 23 17:11:59 2018 +0100 @@ -71,20 +71,6 @@ function api:add_extension(data) self:add_item("extension", data); end -function api:has_feature(xmlns) - for _, feature in ipairs(self:get_host_items("feature")) do - if feature == xmlns then return true; end - end - return false; -end -function api:has_identity(category, identity_type, name) - for _, id in ipairs(self:get_host_items("identity")) do - if id.category == category and id.type == identity_type and id.name == name then - return true; - end - end - return false; -end function api:fire_event(...) return (hosts[self.host] or prosody).events.fire_event(...);