From 115dd1cf5f9c8a7b9a792c113cb6b069b0d911c7 Mon Sep 17 00:00:00 2001 From: csoler Date: Fri, 20 Nov 2020 10:33:18 +0100 Subject: [PATCH] removed unused variable _item_count in pqiqos --- libretroshare/src/pqi/pqiqos.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libretroshare/src/pqi/pqiqos.h b/libretroshare/src/pqi/pqiqos.h index 15e42b803..74ff8ba77 100644 --- a/libretroshare/src/pqi/pqiqos.h +++ b/libretroshare/src/pqi/pqiqos.h @@ -60,7 +60,6 @@ public: : _threshold(0.0) , _counter(0.0) , _inc(0.0) - , _item_count(0) {} void *pop() { @@ -69,7 +68,6 @@ public: void *item = _items.front().data ; _items.pop_front() ; - --_item_count ; return item ; } @@ -137,12 +135,11 @@ public: _items.push_back(rec) ; } - uint32_t size() const { return _item_count ; } + uint32_t size() const { return _items.size() ; } float _threshold ; float _counter ; float _inc ; - uint32_t _item_count ; std::list _items ; };