From 1d0673ef568c981e2a9d4d9dd9b2156b5728266d Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Thu, 5 Dec 2024 11:04:38 +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 52f839511a2..b8abbaefe99 100644 --- a/userspace/libsinsp/parsers.cpp +++ b/userspace/libsinsp/parsers.cpp @@ -117,12 +117,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: