summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_regexp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-01 19:45:48 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-01 19:46:31 +0000
commit00c9ae4c698cd63b9ab7cb155d5c342f50281cd6 (patch)
tree1c2d6df4fa608fc7f0154482707f89a920d6e676 /src/lua/lua_regexp.c
parent81b57286eee68cb0f61769b9860ad36b75e4fc05 (diff)
downloadrspamd-00c9ae4c698cd63b9ab7cb155d5c342f50281cd6.tar.gz
rspamd-00c9ae4c698cd63b9ab7cb155d5c342f50281cd6.zip
[Minor] Move function to the common routines
Diffstat (limited to 'src/lua/lua_regexp.c')
-rw-r--r--src/lua/lua_regexp.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/lua/lua_regexp.c b/src/lua/lua_regexp.c
index 70a5a5df4..b782ef7f1 100644
--- a/src/lua/lua_regexp.c
+++ b/src/lua/lua_regexp.c
@@ -81,37 +81,6 @@ lua_check_regexp (lua_State * L, gint pos)
return ud ? *((struct rspamd_lua_regexp **)ud) : NULL;
}
-static gchar *
-rspamd_lua_get_module_name (lua_State *L)
-{
- lua_Debug d;
- gchar *p;
- gchar func_buf[128];
-
- if (lua_getstack (L, 1, &d) == 1) {
- (void) lua_getinfo (L, "Sl", &d);
- if ((p = strrchr (d.short_src, '/')) == NULL) {
- p = d.short_src;
- }
- else {
- p++;
- }
-
- if (strlen (p) > 20) {
- rspamd_snprintf (func_buf, sizeof (func_buf), "%10s...]:%d", p,
- d.currentline);
- }
- else {
- rspamd_snprintf (func_buf, sizeof (func_buf), "%s:%d", p,
- d.currentline);
- }
-
- return g_strdup (func_buf);
- }
-
- return NULL;
-}
-
/***
* @function rspamd_regexp.create(pattern[, flags])
* Creates new rspamd_regexp