aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-05-29 16:06:42 +0200
committerKim Alvefur <zash@zash.se>2022-05-29 16:06:42 +0200
commit67177ce287a7a35c93538d9b1c574e9ed6ca44d3 (patch)
treea7ac79d959fa45f7b222ab4e64eb124356990ca5
parentfb0299bbf610cf757f9821c358e5c003016643c7 (diff)
downloadprosody-67177ce287a7a35c93538d9b1c574e9ed6ca44d3.tar.gz
prosody-67177ce287a7a35c93538d9b1c574e9ed6ca44d3.zip
core.configmanager: Remove COMPAT for old config format from 2013
-rw-r--r--core/configmanager.lua15
1 files changed, 3 insertions, 12 deletions
diff --git a/core/configmanager.lua b/core/configmanager.lua
index 092b3946..4b8df96e 100644
--- a/core/configmanager.lua
+++ b/core/configmanager.lua
@@ -40,16 +40,10 @@ function _M.getconfig()
return config;
end
-function _M.get(host, key, _oldkey)
- if key == "core" then
- key = _oldkey; -- COMPAT with code that still uses "core"
- end
+function _M.get(host, key)
return config[host][key];
end
-function _M.rawget(host, key, _oldkey)
- if key == "core" then
- key = _oldkey; -- COMPAT with code that still uses "core"
- end
+function _M.rawget(host, key)
local hostconfig = rawget(config, host);
if hostconfig then
return rawget(hostconfig, key);
@@ -68,10 +62,7 @@ local function set(config_table, host, key, value)
return false;
end
-function _M.set(host, key, value, _oldvalue)
- if key == "core" then
- key, value = value, _oldvalue; --COMPAT with code that still uses "core"
- end
+function _M.set(host, key, value)
return set(config, host, key, value);
end