From: Julien "_FrnchFrgg_" RIVAUD Date: Mon, 1 Aug 2016 19:57:39 +0000 (+0200) Subject: Remove code with no actual effect X-Git-Tag: 5.0-rc2~40 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=f7c31569606405a98149cc01bcad5f6008cd744d Remove code with no actual effect That code modifies \imprecise if it is not NULL, but - if a configuration is found, \imprecise will be set to in, clobbering the tentative changes done here; - if a configuration is not found, a last-resort loop will be run that will set the same member of \imprecise, also clobbering our changes. Remove it since it does nothing that is looked at before being forgotten. A way to get the intended outcome will be introduced later. --- diff --git a/libs/ardour/luaproc.cc b/libs/ardour/luaproc.cc index 6af4a1842e..0c5581e2a0 100644 --- a/libs/ardour/luaproc.cc +++ b/libs/ardour/luaproc.cc @@ -505,11 +505,6 @@ LuaProc::can_support_io_configuration (const ChanCount& in, ChanCount& out, Chan if (possible_in < -2) { /* explicit variable number of inputs */ - if (audio_in > -possible_in && imprecise != NULL) { - // hide inputs ports - imprecise->set (DataType::AUDIO, -possible_in); - } - if (audio_in > -possible_in && imprecise == NULL) { /* request is too large */ } else if (possible_out == -1) {