From d6658b7e69b8f697e07dc5bb8d7a15be4a4c4b3a Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Mon, 16 Dec 2024 11:52:52 +0100 Subject: [PATCH] cleanup: remove some duplicate code since write has the EF_USES_FLAG, we call `set_fd_info` in `sinsp_parser::reset` Signed-off-by: Andrea Terzolo --- userspace/libsinsp/parsers.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/userspace/libsinsp/parsers.cpp b/userspace/libsinsp/parsers.cpp index c79cbcd31c..f4f05ab30c 100644 --- a/userspace/libsinsp/parsers.cpp +++ b/userspace/libsinsp/parsers.cpp @@ -116,12 +116,6 @@ void sinsp_parser::process_event(sinsp_evt *evt) { case PPME_SYSCALL_EXECVEAT_E: store_event(evt); break; - case PPME_SYSCALL_WRITE_E: - if(!m_inspector->is_dumping() && evt->get_tinfo() != nullptr) { - // note(jasondellaluce): this may be useless now that we removed tracers support - evt->set_fd_info(evt->get_tinfo()->get_fd(evt->get_tinfo()->m_lastevent_fd)); - } - break; case PPME_SYSCALL_MKDIR_X: case PPME_SYSCALL_RMDIR_X: case PPME_SYSCALL_LINK_X: