aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/byte_view_tab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt/byte_view_tab.cpp')
-rw-r--r--ui/qt/byte_view_tab.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/ui/qt/byte_view_tab.cpp b/ui/qt/byte_view_tab.cpp
index aefdd09737..8a266e7ce0 100644
--- a/ui/qt/byte_view_tab.cpp
+++ b/ui/qt/byte_view_tab.cpp
@@ -180,7 +180,6 @@ ByteViewText * ByteViewTab::findByteViewTextForTvb(tvbuff_t * search_tvb, int *
bool found = false;
QList<ByteViewText *> allBVTs = findChildren<ByteViewText *>();
- unsigned int length = search_tvb->length;
for (int i = 0; i < allBVTs.size() && ! found; ++i)
{
ByteViewText * bvt = allBVTs.at(i);
@@ -188,19 +187,6 @@ ByteViewText * ByteViewTab::findByteViewTextForTvb(tvbuff_t * search_tvb, int *
if (stored == search_tvb)
{
found = true;
- }
- else if (stored)
- {
- if (stored->length >= length && tvb_memeql(search_tvb, 0, tvb_get_ptr(stored, 0, length), length) == 0)
- {
- /* In packetDialog we do not match, because we came from different data sources.
- * Assuming the capture files match, this should be a sufficient enough difference */
- found = true;
- }
- }
-
- if (found)
- {
int wdgIdx = bvt->property("tab_index").toInt();
if (idx)
{