Remove unused assert warnings when building Release
This commit is contained in:
parent
9b3183c791
commit
f51ba0f681
|
@ -267,8 +267,7 @@ void Receiver::_handleHidppEvent(hidpp::Report &report)
|
|||
void Receiver::addDjEventHandler(const std::string& nickname,
|
||||
const std::shared_ptr<EventHandler>& handler)
|
||||
{
|
||||
auto it = _dj_event_handlers.find(nickname);
|
||||
assert(it == _dj_event_handlers.end());
|
||||
assert(_dj_event_handlers.find(nickname) == _dj_event_handlers.end());
|
||||
_dj_event_handlers.emplace(nickname, handler);
|
||||
}
|
||||
|
||||
|
@ -286,8 +285,7 @@ Receiver::djEventHandlers()
|
|||
void Receiver::addHidppEventHandler(const std::string& nickname,
|
||||
const std::shared_ptr<hidpp::EventHandler>& handler)
|
||||
{
|
||||
auto it = _hidpp_event_handlers.find(nickname);
|
||||
assert(it == _hidpp_event_handlers.end());
|
||||
assert(_hidpp_event_handlers.find(nickname) == _hidpp_event_handlers.end());
|
||||
_hidpp_event_handlers.emplace(nickname, handler);
|
||||
}
|
||||
|
||||
|
|
|
@ -138,8 +138,7 @@ Device::~Device()
|
|||
void Device::addEventHandler(const std::string& nickname,
|
||||
const std::shared_ptr<EventHandler>& handler)
|
||||
{
|
||||
auto it = _event_handlers.find(nickname);
|
||||
assert(it == _event_handlers.end());
|
||||
assert(_event_handlers.find(nickname) == _event_handlers.end());
|
||||
|
||||
_event_handlers.emplace(nickname, handler);
|
||||
}
|
||||
|
|
|
@ -459,8 +459,7 @@ void RawDevice::addEventHandler(const std::string& nickname,
|
|||
const std::shared_ptr<raw::RawEventHandler>& handler)
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(_event_handler_lock);
|
||||
auto it = _event_handlers.find(nickname);
|
||||
assert(it == _event_handlers.end());
|
||||
assert(_event_handlers.find(nickname) == _event_handlers.end());
|
||||
assert(handler);
|
||||
_event_handlers.emplace(nickname, handler);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user