diff options
author | Max <msuraev@sysmocom.de> | 2017-12-15 17:44:47 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-12-15 17:44:47 +0100 |
commit | 912131803bfbc275e2d9f11fbb0e4413d7b44630 (patch) | |
tree | 7b5e1af30e7faf13ee334648b72d7e5359cabbfb /src/tbf.cpp | |
parent | 1a11d1db09bd7a17ff1bf4bfd5cc31e6f4fbd06d (diff) |
TBF: remove unused variable
The num_T_exp is write-only so it can be safely dropped.
Change-Id: I94d83ca8c9b2f0732b53fdf42b17ba93cd7f1c15
Diffstat (limited to 'src/tbf.cpp')
-rw-r--r-- | src/tbf.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp index 98005dc6..c139af7b 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -162,7 +162,6 @@ gprs_rlcmac_tbf::gprs_rlcmac_tbf(BTS *bts_, gprs_rlcmac_tbf_direction dir) : poll_ts(0), n3105(0), T(0), - num_T_exp(0), fT(0), num_fT_exp(0), state(GPRS_RLCMAC_NULL), @@ -541,7 +540,6 @@ void tbf_timer_start(struct gprs_rlcmac_tbf *tbf, unsigned int T, LOGPC(DRLCMAC, (T != tbf->T) ? LOGL_ERROR : LOGL_DEBUG, "\n"); tbf->T = T; - tbf->num_T_exp = 0; /* Tunning timers can be safely re-scheduled. */ tbf->timer.data = tbf; @@ -1007,8 +1005,6 @@ void gprs_rlcmac_tbf::handle_timeout() LOGP(DRLCMAC, LOGL_DEBUG, "%s timer %u expired.\n", tbf_name(this), T); - num_T_exp++; - switch (T) { case 0: /* assignment */ if ((state_flags & (1 << GPRS_RLCMAC_FLAG_PACCH))) { |