Further reduce DSP load of debug builds

In all years of using these assert()s never triggered. Besides
there are valid_port() tests in other strategic locations that
are not periodically hit in realtime context.
This commit is contained in:
Robin Gareus 2022-05-06 01:25:05 +02:00
parent ed21ea8fc6
commit 226dadbd19
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
6 changed files with 3 additions and 7 deletions

View file

@ -1218,7 +1218,6 @@ CoreAudioBackend::get_buffer (PortEngine::PortHandle port_handle, pframes_t nfra
{
boost::shared_ptr<BackendPort> port = boost::dynamic_pointer_cast<BackendPort> (port_handle);
assert (port);
assert (valid_port (port));
if (!port || !valid_port (port)) return NULL; // XXX remove me
return port->get_buffer (nframes);
}