Remove duplicate setters that don't affect the outcome
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Sun, 31 Jul 2016 08:43:58 +0000 (10:43 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Mon, 1 Aug 2016 07:46:20 +0000 (09:46 +0200)
There is no code that read the set value in between the removed line and
its exact counterpart below. There is no similar duplicate in the
AudioUnit code due to the way AudioUnit handles midi.

libs/ardour/luaproc.cc

index 48daf8cede1243da7ada3cfe1d3ac7e42d27737e..b393a2e00d85db86aceb8686d4b39b962c5a5299 100644 (file)
@@ -558,7 +558,6 @@ LuaProc::can_support_io_configuration (const ChanCount& in, ChanCount& out, Chan
 
        if (found && imprecise) {
                *imprecise = in;
-               imprecise->set (DataType::MIDI, _has_midi_input ? 1 : 0);
        }
 
        if (!found && imprecise) {
@@ -658,7 +657,6 @@ LuaProc::configure_io (ChanCount in, ChanCount out)
                                                        lin.set (DataType::MIDI, c);
                                                }
                                        }
-                                       _info->n_inputs = lin;
                                        if (io["midi_out"].type() == LUA_TNUMBER) {
                                                const int c = io["midi_out"].cast<int> ();
                                                if (c >= 0) {