aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-10-19 01:22:32 -0700
committerGuy Harris <guy@alum.mit.edu>2015-10-19 09:34:24 +0000
commitb98ebbc0b3c6c6a89cbf13061857de497a5fd5f7 (patch)
tree6ec5c543f8ab30e6a0058a546c10158544687259 /ui
parent40caff2d1fb08262c84aaaa8ac584baa8866dd7c (diff)
Eliminate unused method arguments and class members.
(Yes, clang "Apple LLVM version 7.0.0 (clang-700.0.72)" complains about it.) Change-Id: I5b9ddff26664e20c1129e0b2494bd96c1903c6d9 Reviewed-on: https://code.wireshark.org/review/11141 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/lte_rlc_statistics_dialog.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/ui/qt/lte_rlc_statistics_dialog.cpp b/ui/qt/lte_rlc_statistics_dialog.cpp
index 1378b068a6..67d1702b55 100644
--- a/ui/qt/lte_rlc_statistics_dialog.cpp
+++ b/ui/qt/lte_rlc_statistics_dialog.cpp
@@ -125,12 +125,11 @@ typedef struct rlc_channel_stats {
class RlcChannelTreeWidgetItem : public QTreeWidgetItem
{
public:
- RlcChannelTreeWidgetItem(QTreeWidgetItem *parent, QWidget &dialog,
+ RlcChannelTreeWidgetItem(QTreeWidgetItem *parent,
unsigned ueid,
unsigned mode,
unsigned channelType, unsigned channelId) :
QTreeWidgetItem(parent, rlc_channel_row_type_),
- dialog_(dialog),
ueid_(ueid),
channelType_(channelType),
channelId_(channelId),
@@ -319,8 +318,6 @@ public:
unsigned get_mode() { return mode_; }
private:
- QWidget &dialog_;
-
unsigned ueid_;
unsigned channelType_;
unsigned channelId_;
@@ -373,9 +370,8 @@ typedef struct rlc_ue_stats {
class RlcUeTreeWidgetItem : public QTreeWidgetItem
{
public:
- RlcUeTreeWidgetItem(QTreeWidget *parent, QWidget *dialog, const rlc_lte_tap_info *rlt_info) :
+ RlcUeTreeWidgetItem(QTreeWidget *parent, const rlc_lte_tap_info *rlt_info) :
QTreeWidgetItem (parent, rlc_ue_row_type_),
- dialog_(dialog),
ueid_(0)
{
ueid_ = rlt_info->ueid;
@@ -468,7 +464,7 @@ public:
channel_item = CCCH_stats_;
if (channel_item == NULL) {
channel_item = CCCH_stats_ =
- new RlcChannelTreeWidgetItem(this, *dialog_, tap_info->ueid, RLC_TM_MODE,
+ new RlcChannelTreeWidgetItem(this, tap_info->ueid, RLC_TM_MODE,
tap_info->channelType, tap_info->channelId);
}
break;
@@ -477,7 +473,7 @@ public:
channel_item = srb_stats_[tap_info->channelId-1];
if (channel_item == NULL) {
channel_item = srb_stats_[tap_info->channelId-1] =
- new RlcChannelTreeWidgetItem(this, *dialog_, tap_info->ueid, RLC_AM_MODE,
+ new RlcChannelTreeWidgetItem(this, tap_info->ueid, RLC_AM_MODE,
tap_info->channelType, tap_info->channelId);
}
break;
@@ -486,7 +482,7 @@ public:
channel_item = drb_stats_[tap_info->channelId-1];
if (channel_item == NULL) {
channel_item = drb_stats_[tap_info->channelId-1] =
- new RlcChannelTreeWidgetItem(this, *dialog_, tap_info->ueid, tap_info->rlcMode,
+ new RlcChannelTreeWidgetItem(this, tap_info->ueid, tap_info->rlcMode,
tap_info->channelType, tap_info->channelId);
}
break;
@@ -596,8 +592,6 @@ public:
}
private:
- QWidget *dialog_;
-
unsigned ueid_;
rlc_ue_stats stats_;
@@ -760,7 +754,7 @@ gboolean LteRlcStatisticsDialog::tapPacket(void *ws_dlg_ptr, struct _packet_info
if (!ue_ti) {
// Existing UE wasn't found so create a new one.
- ue_ti = new RlcUeTreeWidgetItem(ws_dlg->statsTreeWidget(), ws_dlg, rlt_info);
+ ue_ti = new RlcUeTreeWidgetItem(ws_dlg->statsTreeWidget(), rlt_info);
for (int col = 0; col < ws_dlg->statsTreeWidget()->columnCount(); col++) {
ue_ti->setTextAlignment(col, ws_dlg->statsTreeWidget()->headerItem()->textAlignment(col));
}