Software /
code /
prosody
Changeset
9527:ced174f29d9a
stanza_router: Remove deprecation warning for core routing functions from global scope (deprecated in 0.9)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 21 Oct 2018 14:45:22 +0200 |
parents | 9526:9cc1d7efaa80 |
children | 9528:1af7cc3b9747 |
files | core/stanza_router.lua |
diffstat | 1 files changed, 0 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/core/stanza_router.lua Sun Oct 21 14:33:26 2018 +0200 +++ b/core/stanza_router.lua Sun Oct 21 14:45:22 2018 +0200 @@ -19,16 +19,6 @@ local core_post_stanza, core_process_stanza, core_route_stanza; -local function deprecated_warning(f) - _G[f] = function(...) - log("warn", "Using the global %s() is deprecated, use module:send() or prosody.%s(). %s", f, f, debug.traceback()); - return prosody[f](...); - end -end -deprecated_warning"core_post_stanza"; -deprecated_warning"core_process_stanza"; -deprecated_warning"core_route_stanza"; - local valid_stanzas = { message = true, presence = true, iq = true }; local function handle_unhandled_stanza(host, origin, stanza) --luacheck: ignore 212/host local name, xmlns, origin_type = stanza.name, stanza.attr.xmlns or "jabber:client", origin.type;