summaryrefslogtreecommitdiff
path: root/epan/tvbuff.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-08-25 19:14:59 -0400
committerAnders Broman <a.broman58@gmail.com>2015-08-27 04:34:10 +0000
commit0af048b7e40ee92d6702df873cbc515ae2eff9c8 (patch)
treef980825d5b37ce5c5d322b149c122b0704edd6ff /epan/tvbuff.h
parent374439daa17fe2692746857b920616354ce658e7 (diff)
downloadwireshark-0af048b7e40ee92d6702df873cbc515ae2eff9c8.tar.gz
Remove calls of tvb_ensure_length_remaining.
The remaining calls seem to fall into 3 categories: 1. passing it to tvb_find_line_end when -1 (for length) will do. 2. duplicating the checking of tvb_reported_length_remaining, which is already in use near the tvb_ensure_length_remaining call. 3. Those that (probably) need tvb_ensure_capture_length_remaining Change-Id: I1e77695251e055644bcbbb89f3c181c65d1671ca Reviewed-on: https://code.wireshark.org/review/10268 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/tvbuff.h')
-rw-r--r--epan/tvbuff.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/epan/tvbuff.h b/epan/tvbuff.h
index 74e0a7e2fc..f359422703 100644
--- a/epan/tvbuff.h
+++ b/epan/tvbuff.h
@@ -235,9 +235,6 @@ WS_DLL_PUBLIC gint tvb_captured_length_remaining(const tvbuff_t *tvb, const gint
WS_DLL_PUBLIC guint tvb_ensure_captured_length_remaining(const tvbuff_t *tvb,
const gint offset);
-/* DEPRECATED, do not use in new code, call tvb_ensure_captured_length_remaining directly! */
-#define tvb_ensure_length_remaining tvb_ensure_captured_length_remaining
-
/* Checks (w/o throwing exception) that the bytes referred to by
* 'offset'/'length' actually exist in the buffer */
WS_DLL_PUBLIC gboolean tvb_bytes_exist(const tvbuff_t *tvb, const gint offset,