message: core: fix usage of remove_if
diff: @@ -171,10 +171,10 @@ void SystemImpl::register_statustext_handler(
  void SystemImpl::unregister_statustext_handler(void* cookie)
  {
  std::lock_guard<std::mutex> lock(_statustext_handler_callbacks_mutex);
  - std::remove_if(
  + _statustext_handler_callbacks.erase(std::remove_if(
  _statustext_handler_callbacks.begin(),
  _statustext_handler_callbacks.end(),
  - [&](const auto& entry) { return entry.cookie == cookie; });
  + [&](const auto& entry) { return entry.cookie == cookie; }));
  }
  void SystemImpl::process_heartbeat(const mavlink_message_t& message)
  