Remove unused IEventQueue::isEmpty() method to simplify code understanding

Current code base don't use IEventQueue::isEmpty() method.
Remove it to simplify IEventQueue API and to remove confusion with
IEventQueueBuffer with same name.

The IEventQueueBuffer::isEmpty() and all its implementations kept unchanged
This commit is contained in:
Vasily Galkin 2020-05-06 11:43:47 +03:00
parent dbd10820c3
commit 8ab6ad64f9
3 changed files with 0 additions and 14 deletions

View File

@ -436,12 +436,6 @@ EventQueue::removeHandlers(void* target)
} }
} }
bool
EventQueue::isEmpty() const
{
return (m_buffer->isEmpty() && getNextTimerTimeout() != 0.0);
}
IEventJob* IEventJob*
EventQueue::getHandler(Event::Type type, void* target) const EventQueue::getHandler(Event::Type type, void* target) const
{ {

View File

@ -58,7 +58,6 @@ public:
virtual void removeHandlers(void* target); virtual void removeHandlers(void* target);
virtual Event::Type virtual Event::Type
registerTypeOnce(Event::Type& type, const char* name); registerTypeOnce(Event::Type& type, const char* name);
virtual bool isEmpty() const;
virtual IEventJob* getHandler(Event::Type type, void* target) const; virtual IEventJob* getHandler(Event::Type type, void* target) const;
virtual const char* getTypeName(Event::Type type); virtual const char* getTypeName(Event::Type type);
virtual Event::Type virtual Event::Type

View File

@ -189,13 +189,6 @@ public:
//! @name accessors //! @name accessors
//@{ //@{
//! Test if queue is empty
/*!
Returns true iff the queue has no events in it, including timer
events.
*/
virtual bool isEmpty() const = 0;
//! Get an event handler //! Get an event handler
/*! /*!
Finds and returns the event handler for the \p type, \p target pair Finds and returns the event handler for the \p type, \p target pair