diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-01-22 16:59:56 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-01-23 01:00:31 +0000 |
commit | 5fecf1795ef5365db69527e3b64d2234253cd5cb (patch) | |
tree | b41efd333ae49d5120e0eb0acc1d6a3137a05551 /epan/dissectors/file-pcap.c | |
parent | 3d570b5a39f868209e4b38c43b0ba6bfefe8a9bf (diff) | |
download | wireshark-5fecf1795ef5365db69527e3b64d2234253cd5cb.tar.gz |
Get rid of now-unused expert info.
(If the magic number isn't something we recognize, we don't treat the
file as a pcap file, so it can never be "unknown".)
Change-Id: I7e8bac1ebd2cbfd6d603035428274a1098ff7544
Reviewed-on: https://code.wireshark.org/review/13491
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/file-pcap.c')
-rw-r--r-- | epan/dissectors/file-pcap.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/epan/dissectors/file-pcap.c b/epan/dissectors/file-pcap.c index 91dd9ae7af..8b1d8a3b07 100644 --- a/epan/dissectors/file-pcap.c +++ b/epan/dissectors/file-pcap.c @@ -54,8 +54,6 @@ static int hf_pcap_packet_included_length = -1; static int hf_pcap_packet_origin_length = -1; static int hf_pcap_packet_data = -1; -static expert_field ei_unknown_encoding = EI_INIT; - static gint ett_pcap = -1; static gint ett_pcap_header = -1; static gint ett_pcap_packet = -1; @@ -215,7 +213,6 @@ void proto_register_file_pcap(void) { module_t *module; - expert_module_t *expert_module; static hf_register_info hf[] = { { &hf_pcap_header, @@ -295,10 +292,6 @@ proto_register_file_pcap(void) }, }; - static ei_register_info ei[] = { - { &ei_unknown_encoding, { "pcap.unknown_encoding", PI_PROTOCOL, PI_ERROR, "Unknown Encoding", EXPFILL }} - }; - static gint *ett[] = { &ett_pcap, &ett_pcap_header, @@ -322,9 +315,6 @@ proto_register_file_pcap(void) "Dissect next layer", "Dissect next layer", &pref_dissect_next_layer); - - expert_module = expert_register_protocol(proto_pcap); - expert_register_field_array(expert_module, ei, array_length(ei)); } void |