From 486dd13af3784a7303c8c48fdc11487bb5e0e46c Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Wed, 25 Nov 2015 09:30:38 -0500 Subject: Remove create_dissector_handle Change-Id: I1ad7c112eda45a41c3f94b04348e328d44d8f585 Reviewed-on: https://code.wireshark.org/review/12152 Reviewed-by: Michael Mann --- debian/libwireshark0.symbols | 1 - epan/packet.c | 15 --------------- epan/packet.h | 2 -- 3 files changed, 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, -- cgit v1.2.1