From: Philippe Antoine Date: Fri, 2 May 2025 12:33:22 +0000 (+0200) Subject: lua: remove unused code X-Git-Tag: suricata-8.0.0-rc1~342 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=c578015edf9ff3919d58d03efdf41731ac5ddce5;p=thirdparty%2Fsuricata.git lua: remove unused code Since hooks, we do not need a specific SMTP buffer list id. --- diff --git a/src/detect-lua.c b/src/detect-lua.c index 049142471a..11c9fad7cf 100644 --- a/src/detect-lua.c +++ b/src/detect-lua.c @@ -72,7 +72,6 @@ static int DetectLuaSetup (DetectEngineCtx *, Signature *, const char *); static void DetectLuaRegisterTests(void); #endif static void DetectLuaFree(DetectEngineCtx *, void *); -static int g_smtp_generic_list_id = 0; /** * \brief Registration function for keyword: lua @@ -89,12 +88,6 @@ void DetectLuaRegister(void) #ifdef UNITTESTS sigmatch_table[DETECT_LUA].RegisterTests = DetectLuaRegisterTests; #endif - g_smtp_generic_list_id = DetectBufferTypeRegister("smtp_generic"); - - DetectAppLayerInspectEngineRegister("smtp_generic", ALPROTO_SMTP, SIG_FLAG_TOSERVER, 0, - DetectEngineInspectGenericList, NULL); - DetectAppLayerInspectEngineRegister("smtp_generic", ALPROTO_SMTP, SIG_FLAG_TOCLIENT, 0, - DetectEngineInspectGenericList, NULL); SCLogDebug("registering lua rule option"); }