Skip to content

Commit

Permalink
chore(libsinsp): remove unused plugin table API functions
Browse files Browse the repository at this point in the history
Clean-up unused functions from the table API.

Signed-off-by: Iacopo Rozzo <[email protected]>
  • Loading branch information
irozzo-1A authored and poiana committed Feb 17, 2025
1 parent 618da03 commit 0d94d2b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
16 changes: 0 additions & 16 deletions userspace/libsinsp/plugin_table_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,22 +76,6 @@ static inline void convert_types(const From& from, To& to) {
to = from;
}

// special cases for strings
template<>
inline void convert_types(const std::string& from, const char*& to) {
to = from.c_str();
}

template<>
inline void convert_types(libsinsp::state::base_table* const& from, ss_plugin_table_t*& to) {
to = static_cast<ss_plugin_table_t*>(from);
}

template<>
inline void convert_types(ss_plugin_table_t* const& from, libsinsp::state::base_table*& to) {
to = static_cast<libsinsp::state::base_table*>(from);
}

static void noop_release_table_entry(ss_plugin_table_t*, ss_plugin_table_entry_t*) {}

static ss_plugin_bool noop_iterate_entries(ss_plugin_table_t*,
Expand Down
11 changes: 0 additions & 11 deletions userspace/libsinsp/state/table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,6 @@ static inline void convert_types(const From& from, To& to) {
to = from;
}

// special cases for strings
template<>
inline void convert_types(const std::string& from, const char*& to) {
to = from.c_str();
}

template<>
inline void convert_types(libsinsp::state::base_table* const& from, ss_plugin_table_t*& to) {
to = static_cast<ss_plugin_table_t*>(from);
}

template<>
inline void convert_types(ss_plugin_table_t* const& from, libsinsp::state::base_table*& to) {
to = static_cast<libsinsp::state::base_table*>(from);
Expand Down

0 comments on commit 0d94d2b

Please sign in to comment.