diff --git a/userspace/engine/formats.cpp b/userspace/engine/formats.cpp index 254e77a3..c5b14449 100644 --- a/userspace/engine/formats.cpp +++ b/userspace/engine/formats.cpp @@ -107,15 +107,6 @@ int falco_formats::lua_free_formatter(lua_State *ls) return 0; } -void falco_formats::free_formatters() -{ - if(s_formatters) - { - delete(s_formatters); - s_formatters = NULL; - } -} - string falco_formats::format_event(const gen_event *evt, const std::string &rule, const std::string &source, const std::string &level, const std::string &format) { diff --git a/userspace/engine/formats.h b/userspace/engine/formats.h index 37f867e5..bdd47af9 100644 --- a/userspace/engine/formats.h +++ b/userspace/engine/formats.h @@ -45,8 +45,6 @@ public: // falco.free_formatter(formatter) static int lua_free_formatter(lua_State *ls); - static void free_formatters(); - static string format_event(const gen_event *evt, const std::string &rule, const std::string &source, const std::string &level, const std::string &format);