# HG changeset patch # User Kim Alvefur # Date 1540125922 -7200 # Node ID ced174f29d9a047dd674d0e7a6032dd6e8060aa3 # Parent 9cc1d7efaa80aa9e3b0a393cb6e5a9c19dd6abcd stanza_router: Remove deprecation warning for core routing functions from global scope (deprecated in 0.9) diff -r 9cc1d7efaa80 -r ced174f29d9a core/stanza_router.lua --- 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;