#if 0 some unused code & vars: Coverity 1018 & 1019;
[obnox/wireshark/wip.git] / epan / dissectors / packet-reload.c
index 1460ccd2437ef81ae3cae930f8ab3e0892bb90ea..2734a41ce34c0ea8f328949dad55e63468c1471c 100644 (file)
@@ -2093,11 +2093,13 @@ dissect_reload_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   return msg_length;
 }
 
+#if 0 /* XXX: See note in proto_reg_handoff_reload() */
 static int
 dissect_reload_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
   return dissect_reload_message(tvb, pinfo, tree);
 }
+#endif
 
 static void
 dissect_reload_message_no_return(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
@@ -2105,12 +2107,14 @@ dissect_reload_message_no_return(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
   dissect_reload_message(tvb, pinfo, tree);
 }
 
+#if 0 /* XXX: See note in proto_reg_handoff_reload() */
 static void
 dissect_reload_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
   tcp_dissect_pdus(tvb, pinfo, tree, TRUE, MIN_HDR_LENGTH,
                    get_reload_message_length, dissect_reload_message_no_return);
 }
+#endif
 
 static gboolean
 dissect_reload_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
@@ -2788,11 +2792,14 @@ void
 proto_reg_handoff_reload(void)
 {
 
+#if 0  /* XXX: Are the tcp & udp handles supposed to be registered */
+       /*   to "tcp.port" & "udp.port" for some value(s) of port ? */
   dissector_handle_t reload_tcp_handle;
   dissector_handle_t reload_udp_handle;
 
   reload_tcp_handle = create_dissector_handle(dissect_reload_tcp, proto_reload);
   reload_udp_handle = new_create_dissector_handle(dissect_reload_udp, proto_reload);
+#endif
 
   data_handle = find_dissector("data");