Skip to content

Commit

Permalink
chore(libsinsp): remove unsused parse_suppresed_types function
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
  • Loading branch information
therealbobo authored and poiana committed Feb 16, 2024
1 parent 82fa06c commit 21c51fd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
14 changes: 0 additions & 14 deletions userspace/libsinsp/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -925,20 +925,6 @@ void sinsp_utils::split_container_image(const std::string &image,
}
}

void sinsp_utils::parse_suppressed_types(const std::vector<std::string>& supp_strs,
std::vector<ppm_event_code>* supp_ids)
{
for (auto ii = 0; ii < PPM_EVENT_MAX; ii++)
{
auto iter = std::find(supp_strs.begin(), supp_strs.end(),
event_name_by_id(ii));
if (iter != supp_strs.end())
{
supp_ids->push_back(static_cast<ppm_event_code>(ii));
}
}
}

static int32_t gmt2local(time_t t)
{
int dt, dir;
Expand Down
3 changes: 0 additions & 3 deletions userspace/libsinsp/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ class sinsp_utils
std::string &digest,
bool split_repo = true);

static void parse_suppressed_types(const std::vector<std::string>& supp_strs,
std::vector<ppm_event_code>* supp_ids);

static void ts_to_string(uint64_t ts, OUT std::string* res, bool date, bool ns);

static void ts_to_iso_8601(uint64_t ts, OUT std::string* res);
Expand Down

0 comments on commit 21c51fd

Please # to comment.