From c2b6a27e97dd8ff958cc4bb82684a70db18d2d29 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 11 Oct 2021 13:42:58 -0700 Subject: [PATCH] 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. --- epan/dissectors/packet-autosar-nm.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/epan/dissectors/packet-autosar-nm.c b/epan/dissectors/packet-autosar-nm.c index cc228e01ed..049ea9b6ac 100644 --- a/epan/dissectors/packet-autosar-nm.c +++ b/epan/dissectors/packet-autosar-nm.c @@ -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);