Skip to content

Commit c5d6f65

Browse files
author
Kirc
committed
Remove get_type_from_xml
1 parent f7e0647 commit c5d6f65

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

plugins/storage/fastbit/fastbit.cpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -188,30 +188,6 @@ int load_types_from_xml(struct fastbit_config *conf)
188188
return 0;
189189
}
190190

191-
/**
192-
* \brief Search for element type in configure structure
193-
*
194-
* @param conf fastbit storage plug-in configuration structure
195-
* @param en Enterprise number of element
196-
* @param id ID of information element
197-
* @return element type
198-
*/
199-
enum store_type get_type_from_xml(struct fastbit_config *conf, uint32_t en, uint16_t id)
200-
{
201-
/* Check whether a type has been determined for the specified element */
202-
if ((*conf->elements_types).count(en) == 0 || (*conf->elements_types)[en].count(id) == 0) {
203-
if (en == NFv9_CONVERSION_ENTERPRISE_NUMBER) {
204-
MSG_WARNING(msg_module, "No specification for e%uid%u found in '%s' (enterprise number converted from NFv9)", en, id, ipfix_elements);
205-
} else {
206-
MSG_WARNING(msg_module, "No specification for e%uid%u found in '%s'", en, id, ipfix_elements);
207-
}
208-
209-
return UNKNOWN;
210-
}
211-
212-
return (*conf->elements_types)[en][id];
213-
}
214-
215191
void *reorder_index(void *config)
216192
{
217193
struct fastbit_config *conf = static_cast<struct fastbit_config*>(config);

plugins/storage/fastbit/fastbit.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,4 @@ struct od_info {
100100
*/
101101
int load_types_from_xml(struct fastbit_config *conf);
102102

103-
/**
104-
* \brief Search for element type in configure structure
105-
*
106-
* @param conf fastbit storage plug-in configuration structure
107-
* @param en Enterprise number of element
108-
* @param id ID of information element
109-
* @return element type
110-
*/
111-
enum store_type get_type_from_xml(struct fastbit_config *conf, uint32_t en, uint16_t id);
112-
113103
#endif /* FASTBIT_H_ */

0 commit comments

Comments
 (0)