autosar_nm: get rid of unused protocol IDs.

We fetch the protocol IDs for several protocols, but use none of them.
Get rid of them.
This commit is contained in:
Guy Harris 2021-10-11 13:42:58 -07:00
parent 9f92da75b8
commit c2b6a27e97
1 changed files with 0 additions and 9 deletions

View File

@ -40,10 +40,6 @@ typedef struct _user_data_field_t {
} user_data_field_t;
static int proto_autosar_nm = -1;
static int proto_can = -1;
static int proto_canfd = -1;
static int proto_caneth = -1;
static int proto_udp = -1;
static dissector_handle_t nm_handle;
static dissector_handle_t nm_handle_can;
@ -737,11 +733,6 @@ void proto_reg_handoff_autosar_nm(void)
nm_handle_can = create_dissector_handle(dissect_autosar_nm_can, proto_autosar_nm);
dissector_add_for_decode_as("can.subdissector", nm_handle_can);
proto_can = proto_get_id_by_filter_name("can");
proto_canfd = proto_get_id_by_filter_name("canfd");
proto_caneth = proto_get_id_by_filter_name("caneth");
proto_udp = proto_get_id_by_filter_name("udp");
/* heuristics default on since they do nothing without IDs being configured */
heur_dissector_add("can", dissect_autosar_nm_can_heur, "AUTOSAR_NM_Heuristic", "autosar_nm_can_heur", proto_autosar_nm, HEURISTIC_ENABLE);