Commit 9e0e9fbf authored by Dominik Charousset's avatar Dominik Charousset

removed single_reader_queue::not_empty

parent 8c6e4e05
......@@ -193,7 +193,7 @@ class abstract_actor : public abstract_actor_base<Base, std::is_base_of<local_ac
mailbox_element* result = nullptr;
{ // lifetime scope of guard
lock_type guard{m_nodes_lock};
if (m_nodes.not_empty()) {
if (!m_nodes.empty()) {
result = m_nodes.back();
m_nodes.pop_back();
}
......
......@@ -121,15 +121,7 @@ class single_reader_queue {
return m_head == nullptr && m_stack.load() == nullptr;
}
/**
* @warning call only from the reader (owner)
*/
inline bool not_empty() const {
return !empty();
}
single_reader_queue() : m_stack(nullptr), m_head(nullptr) {
}
single_reader_queue() : m_stack(nullptr), m_head(nullptr) { }
~single_reader_queue() {
// empty the stack (void) fetch_new_data();
......
......@@ -127,10 +127,6 @@ class fixed_vector {
return m_size == 0;
}
inline bool not_empty() const {
return m_size > 0;
}
inline bool full() const {
return m_size == MaxSize;
}
......@@ -141,7 +137,7 @@ class fixed_vector {
}
inline void pop_back() {
CPPA_REQUIRE(not_empty());
CPPA_REQUIRE(!empty());
--m_size;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment