Skip to content

Commit 0d94d2b

Browse files
irozzo-1Apoiana
authored andcommitted
chore(libsinsp): remove unused plugin table API functions
Clean-up unused functions from the table API. Signed-off-by: Iacopo Rozzo <[email protected]>
1 parent 618da03 commit 0d94d2b

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

userspace/libsinsp/plugin_table_api.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -76,22 +76,6 @@ static inline void convert_types(const From& from, To& to) {
7676
to = from;
7777
}
7878

79-
// special cases for strings
80-
template<>
81-
inline void convert_types(const std::string& from, const char*& to) {
82-
to = from.c_str();
83-
}
84-
85-
template<>
86-
inline void convert_types(libsinsp::state::base_table* const& from, ss_plugin_table_t*& to) {
87-
to = static_cast<ss_plugin_table_t*>(from);
88-
}
89-
90-
template<>
91-
inline void convert_types(ss_plugin_table_t* const& from, libsinsp::state::base_table*& to) {
92-
to = static_cast<libsinsp::state::base_table*>(from);
93-
}
94-
9579
static void noop_release_table_entry(ss_plugin_table_t*, ss_plugin_table_entry_t*) {}
9680

9781
static ss_plugin_bool noop_iterate_entries(ss_plugin_table_t*,

userspace/libsinsp/state/table.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,6 @@ static inline void convert_types(const From& from, To& to) {
7676
to = from;
7777
}
7878

79-
// special cases for strings
80-
template<>
81-
inline void convert_types(const std::string& from, const char*& to) {
82-
to = from.c_str();
83-
}
84-
85-
template<>
86-
inline void convert_types(libsinsp::state::base_table* const& from, ss_plugin_table_t*& to) {
87-
to = static_cast<ss_plugin_table_t*>(from);
88-
}
89-
9079
template<>
9180
inline void convert_types(ss_plugin_table_t* const& from, libsinsp::state::base_table*& to) {
9281
to = static_cast<libsinsp::state::base_table*>(from);

0 commit comments

Comments
 (0)