aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_config.c')
-rw-r--r--src/lua/lua_config.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index fdc572d9d..f42ca268e 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -912,14 +912,12 @@ LUA_FUNCTION_DEF (monitored, alive);
LUA_FUNCTION_DEF (monitored, latency);
LUA_FUNCTION_DEF (monitored, offline);
LUA_FUNCTION_DEF (monitored, total_offline);
-LUA_FUNCTION_DEF (monitored, propagate_error);
static const struct luaL_reg monitoredlib_m[] = {
LUA_INTERFACE_DEF (monitored, alive),
LUA_INTERFACE_DEF (monitored, latency),
LUA_INTERFACE_DEF (monitored, offline),
LUA_INTERFACE_DEF (monitored, total_offline),
- LUA_INTERFACE_DEF (monitored, propagate_error),
{"__tostring", rspamd_lua_class_tostring},
{NULL, NULL}
};
@@ -4633,23 +4631,6 @@ lua_monitored_latency (lua_State *L)
return 1;
}
-static gint
-lua_monitored_propagate_error (lua_State *L)
-{
- LUA_TRACE_POINT;
- struct rspamd_monitored *m = lua_check_monitored (L, 1);
- const gchar *what = luaL_checkstring (L, 2);
-
- if (m && what) {
- rspamd_monitored_propagate_error (m, what);
- }
- else {
- return luaL_error (L, "invalid arguments");
- }
-
- return 0;
-}
-
void
luaopen_config (lua_State * L)
{