aboutsummaryrefslogtreecommitdiffstats
path: root/frame_tvbuff.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-11-23 02:06:35 +0000
committerAnders Broman <a.broman58@gmail.com>2017-11-24 05:13:42 +0000
commit8fa4a440a8f85ff9078c7c28e3747decede0848e (patch)
treee0ad976bb6b10c3b75a4f659d2ea1ea697e51574 /frame_tvbuff.c
parente7b12d85502e2827aacde3efd0821298bd8284ce (diff)
GTK: Remove packet editor
Removes limited experimental feature for deprecated UI. Change-Id: Ib3ccfae89dd2a674ebbde346a442fa1cf6587f26 Reviewed-on: https://code.wireshark.org/review/24563 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'frame_tvbuff.c')
-rw-r--r--frame_tvbuff.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/frame_tvbuff.c b/frame_tvbuff.c
index b60a345356..e050aea113 100644
--- a/frame_tvbuff.c
+++ b/frame_tvbuff.c
@@ -208,11 +208,7 @@ frame_tvbuff_new(const frame_data *fd, const guint8 *buf)
frame_tvb = (struct tvb_frame *) tvb;
/* XXX, wtap_can_seek() */
- if (cfile.wth && cfile.wth->random_fh
-#ifdef WANT_PACKET_EDITOR
- && fd->file_off != -1 /* generic clone for modified packets */
-#endif
- ) {
+ if (cfile.wth && cfile.wth->random_fh) {
frame_tvb->wth = cfile.wth;
frame_tvb->file_off = fd->file_off;
frame_tvb->offset = 0;
@@ -313,11 +309,7 @@ file_tvbuff_new(const frame_data *fd, const guint8 *buf)
frame_tvb = (struct tvb_frame *) tvb;
/* XXX, wtap_can_seek() */
- if (cfile.wth && cfile.wth->random_fh
-#ifdef WANT_PACKET_EDITOR
- && fd->file_off != -1 /* generic clone for modified packets */
-#endif
- ) {
+ if (cfile.wth && cfile.wth->random_fh) {
frame_tvb->wth = cfile.wth;
frame_tvb->file_off = fd->file_off;
frame_tvb->offset = 0;