aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_config.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-04-20 19:57:54 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-04-20 19:57:54 +0100
commitbac819b549f92e5593c92ff5cc32ae82f3e8f460 (patch)
tree325a2b832642228f047c66e36e98820355e0f170 /src/lua/lua_config.c
parentc4e0e7d223add5272fcebd4f54bcbc38b6fe37de (diff)
downloadrspamd-bac819b549f92e5593c92ff5cc32ae82f3e8f460.tar.gz
rspamd-bac819b549f92e5593c92ff5cc32ae82f3e8f460.zip
[Minor] Implement adding deps and remove an old deprecated method
Diffstat (limited to 'src/lua/lua_config.c')
-rw-r--r--src/lua/lua_config.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index 607b97174..8c19671f1 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -2323,14 +2323,8 @@ lua_config_register_dependency (lua_State * L)
child_id = luaL_checknumber (L, 2);
parent = luaL_checkstring (L, 3);
- msg_warn_config ("calling for obsolete method to register deps for symbol %d->%s",
+ return luaL_error(L,"calling for obsolete method to register deps for symbol %d->%s",
child_id, parent);
-
- if (child_id > 0 && parent != NULL) {
-
- rspamd_symcache_add_dependency (cfg->cache, child_id, parent,
- -1);
- }
}
else {
child = luaL_checkstring (L,2);