From ed066b5328aeefca471af24b35c976d80c21312e Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 29 Mar 2021 16:16:27 +0200 Subject: tbf: Get rid of unneeded poll_scheduled() This API is not really needed anymore, since anyway it works under the assumption there can only be 1 POLL in transit per TBF, which isn't necessarily true. Change-Id: I875f51cade95faeb2d79dcebfead4c83e23a731b --- src/tbf.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/tbf.h') diff --git a/src/tbf.h b/src/tbf.h index 83c1b707..5064216b 100644 --- a/src/tbf.h +++ b/src/tbf.h @@ -221,7 +221,6 @@ struct gprs_rlcmac_tbf { bool dl_ass_state_is(enum gprs_rlcmac_tbf_dl_ass_state rhs) const; bool ul_ass_state_is(enum gprs_rlcmac_tbf_ul_ass_state rhs) const; bool ul_ack_state_is(enum gprs_rlcmac_tbf_ul_ack_state rhs) const; - bool poll_scheduled() const; void set_state(enum gprs_rlcmac_tbf_state new_state, const char *file, int line); void set_ass_state_dl(enum gprs_rlcmac_tbf_dl_ass_state new_state, const char *file, int line); void set_ass_state_ul(enum gprs_rlcmac_tbf_ul_ass_state new_state, const char *file, int line); @@ -381,11 +380,6 @@ inline bool gprs_rlcmac_tbf::ul_ack_state_is(enum gprs_rlcmac_tbf_ul_ack_state r return ul_ack_state == rhs; } -inline bool gprs_rlcmac_tbf::poll_scheduled() const -{ - return poll_state == GPRS_RLCMAC_POLL_SCHED; -} - inline bool gprs_rlcmac_tbf::state_is_not(enum gprs_rlcmac_tbf_state rhs) const { return state != rhs; -- cgit v1.2.3