Changeset

12531:32bcb899526f

core.configmanager: Remove COMPAT for old config format from 2013
author Kim Alvefur <zash@zash.se>
date Sun, 29 May 2022 16:06:42 +0200
parents 12530:79431e0282a9
children 12532:8e4033213c62
files core/configmanager.lua
diffstat 1 files changed, 3 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/core/configmanager.lua	Mon May 30 16:25:35 2022 +0200
+++ b/core/configmanager.lua	Sun May 29 16:06:42 2022 +0200
@@ -40,16 +40,10 @@
 	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 @@
 	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