summaryrefslogtreecommitdiff
path: root/epan/tvbuff.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-02-20 00:09:41 +0000
committerGuy Harris <guy@alum.mit.edu>2013-02-20 00:09:41 +0000
commit75168f6bf7288858ec86e9c995ca6e0ff2abdd1a (patch)
tree5250fd352aec729f31b17e97363e004f8b37da4e /epan/tvbuff.c
parentbd7c0171a9fc3a196323781c086308a9915bfb2b (diff)
downloadwireshark-75168f6bf7288858ec86e9c995ca6e0ff2abdd1a.tar.gz
No more tvb_new(), so no more need for tvb_set_real_data() or
tvb_set_subset(); code should use tvb_new_real_data() and various tvb_new_subset routines. (Neither tvb_new() nor tvb_set_real_data() nor tvb_set_subset() were exported in libwireshark.def, nor were they used outside tvbuff.c; tvb_set_real_data() and tvb_set_subset() weren't even being used *inside* tvbuff.c.) svn path=/trunk/; revision=47753
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r--epan/tvbuff.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index dc714a675a..133c965092 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -235,18 +235,6 @@ tvb_set_real_data_no_exceptions(tvbuff_t *tvb, const guint8* data, const guint l
tvb->initialized = TRUE;
}
-void
-tvb_set_real_data(tvbuff_t *tvb, const guint8* data, const guint length, const gint reported_length)
-{
- DISSECTOR_ASSERT(tvb);
- DISSECTOR_ASSERT(tvb->type == TVBUFF_REAL_DATA);
- DISSECTOR_ASSERT(!tvb->initialized);
-
- THROW_ON(reported_length < -1, ReportedBoundsError);
-
- tvb_set_real_data_no_exceptions(tvb, data, length, reported_length);
-}
-
tvbuff_t *
tvb_new_real_data(const guint8* data, const guint length, const gint reported_length)
{
@@ -510,23 +498,6 @@ tvb_set_subset_no_exceptions(tvbuff_t *tvb, tvbuff_t *backing, const gint report
}
}
-void
-tvb_set_subset(tvbuff_t *tvb, tvbuff_t *backing,
- const gint backing_offset, const gint backing_length, const gint reported_length)
-{
- DISSECTOR_ASSERT(tvb);
- DISSECTOR_ASSERT(tvb->type == TVBUFF_SUBSET);
- DISSECTOR_ASSERT(!tvb->initialized);
-
- THROW_ON(reported_length < -1, ReportedBoundsError);
-
- check_offset_length(backing->length, backing->reported_length, backing_offset, backing_length,
- &tvb->tvbuffs.subset.offset,
- &tvb->tvbuffs.subset.length);
-
- tvb_set_subset_no_exceptions(tvb, backing, reported_length);
-}
-
tvbuff_t *
tvb_new_subset(tvbuff_t *backing, const gint backing_offset, const gint backing_length, const gint reported_length)
{