diff options
author | Michael Mann <mmann78@netscape.net> | 2015-11-25 09:30:38 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-11-26 03:18:30 +0000 |
commit | 486dd13af3784a7303c8c48fdc11487bb5e0e46c (patch) | |
tree | d692ce831301ebcf5c7f67a0cc08d75971fde371 | |
parent | b9b6f3f68e25e87e189bda24a0c63188df285803 (diff) | |
download | wireshark-486dd13af3784a7303c8c48fdc11487bb5e0e46c.tar.gz |
Remove create_dissector_handle
Change-Id: I1ad7c112eda45a41c3f94b04348e328d44d8f585
Reviewed-on: https://code.wireshark.org/review/12152
Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r-- | debian/libwireshark0.symbols | 1 | ||||
-rw-r--r-- | epan/packet.c | 15 | ||||
-rw-r--r-- | epan/packet.h | 2 |
3 files changed, 0 insertions, 18 deletions
diff --git a/debian/libwireshark0.symbols b/debian/libwireshark0.symbols index 138d6f49de..b9de24c9dc 100644 --- a/debian/libwireshark0.symbols +++ b/debian/libwireshark0.symbols @@ -190,7 +190,6 @@ libwireshark.so.0 libwireshark0 #MINVER# crc32_mpeg2_tvb_seed@Base 1.9.1 crc32c_tvb_offset_calculate@Base 1.99.0 crc6_compute_tvb@Base 1.99.0 - create_dissector_handle@Base 1.9.1 data_out_file@Base 1.9.1 dcerpc_get_proto_hf_opnum@Base 2.1.0 dcerpc_get_proto_name@Base 1.9.1 diff --git a/epan/packet.c b/epan/packet.c index 00b4f695eb..3c30c68b2e 100644 --- a/epan/packet.c +++ b/epan/packet.c @@ -2596,21 +2596,6 @@ dissector_handle_get_dissector_name(const dissector_handle_t handle) return handle->name; } -/* Create an anonymous handle for a dissector. */ -dissector_handle_t -create_dissector_handle(dissector_t dissector, const int proto) -{ - struct dissector_handle *handle; - - handle = wmem_new(wmem_epan_scope(), struct dissector_handle); - handle->name = NULL; - handle->is_new = FALSE; - handle->dissector.old = dissector; - handle->protocol = find_protocol_by_id(proto); - - return handle; -} - /* Create an anonymous handle for a new dissector. */ dissector_handle_t new_create_dissector_handle(new_dissector_t dissector, const int proto) diff --git a/epan/packet.h b/epan/packet.h index 66ef30ec17..726ec61946 100644 --- a/epan/packet.h +++ b/epan/packet.h @@ -540,8 +540,6 @@ WS_DLL_PUBLIC dissector_handle_t find_dissector(const char *name); WS_DLL_PUBLIC const char *dissector_handle_get_dissector_name(const dissector_handle_t handle); /** Create an anonymous handle for a dissector. */ -WS_DLL_PUBLIC dissector_handle_t create_dissector_handle(dissector_t dissector, - const int proto); WS_DLL_PUBLIC dissector_handle_t new_create_dissector_handle(new_dissector_t dissector, const int proto); WS_DLL_PUBLIC dissector_handle_t new_create_dissector_handle_with_name(new_dissector_t dissector, |