epan: Remove obsolete function proto_register_fields_manual()

Related with #17774.
This commit is contained in:
João Valverde 2021-12-11 15:43:10 +00:00
parent a38c4ea454
commit 6c5d00a746
3 changed files with 0 additions and 32 deletions

View File

@ -1188,7 +1188,6 @@ libwireshark.so.0 libwireshark0 #MINVER#
proto_reenable_all@Base 2.3.0
proto_register_alias@Base 2.9.0
proto_register_field_array@Base 1.9.1
proto_register_fields_manual@Base 1.12.0~rc1
proto_register_plugin@Base 2.5.0
proto_register_prefix@Base 1.9.1
proto_register_protocol@Base 1.9.1

View File

@ -7947,34 +7947,6 @@ proto_register_field_array(const int parent, hf_register_info *hf, const int num
}
}
void
proto_register_fields_manual(const int parent, header_field_info **hfi, const int num_records)
{
int i;
protocol_t *proto;
proto = find_protocol_by_id(parent);
if (proto->fields == NULL) {
proto->fields = g_ptr_array_sized_new(num_records);
}
for (i = 0; i < num_records; i++) {
/*
* Make sure we haven't registered this yet.
*/
if (hfi[i]->id != -1) {
fprintf(stderr,
"Duplicate field detected in call to proto_register_fields: %s is already registered\n",
hfi[i]->abbrev);
return;
}
proto_register_field_common(proto, hfi[i], parent);
}
}
/* deregister already registered fields */
void
proto_deregister_field (const int parent, gint hf_id)

View File

@ -2462,9 +2462,6 @@ proto_register_prefix(const char *prefix, prefix_initializer_t initializer);
/** Initialize every remaining uninitialized prefix. */
WS_DLL_PUBLIC void proto_initialize_all_prefixes(void);
WS_DLL_PUBLIC void proto_register_fields_manual(const int parent, header_field_info **hfi,
const int num_records);
/** Register a header_field array.
@param parent the protocol handle from proto_register_protocol()
@param hf the hf_register_info array