From 49c68478375cbb8540130e52021350e676cf7ad6 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 21 Oct 2018 14:45:22 +0200 Subject: stanza_router: Remove deprecation warning for core routing functions from global scope (deprecated in 0.9) --- core/stanza_router.lua | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/core/stanza_router.lua b/core/stanza_router.lua index 5caa22f6..f5a34f59 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -19,16 +19,6 @@ local bare_sessions = _G.prosody.bare_sessions; 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; -- cgit v1.2.3