aboutsummaryrefslogtreecommitdiffstats
path: root/core/stanza_router.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-21 14:45:22 +0200
committerKim Alvefur <zash@zash.se>2018-10-21 14:45:22 +0200
commit8fe49591f08b5cb1887663550b5802af3cd02ae7 (patch)
tree5e4d1e30b1a4e1de256d7cf093aef07000c8ee1a /core/stanza_router.lua
parent6f73660c2b9534acd0685250fee62cad3cf8facd (diff)
downloadprosody-8fe49591f08b5cb1887663550b5802af3cd02ae7.tar.gz
prosody-8fe49591f08b5cb1887663550b5802af3cd02ae7.zip
stanza_router: Remove deprecation warning for core routing functions from global scope (deprecated in 0.9)
Diffstat (limited to 'core/stanza_router.lua')
-rw-r--r--core/stanza_router.lua10
1 files changed, 0 insertions, 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;