From eb7a3646289281e8f7342b2de65cd7d8e38d0833 Mon Sep 17 00:00:00 2001 From: "Julien \"_FrnchFrgg_\" RIVAUD" Date: Sun, 31 Jul 2016 10:43:58 +0200 Subject: [PATCH] Remove duplicate setters that don't affect the outcome 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 | 2 -- 1 file changed, 2 deletions(-) diff --git a/libs/ardour/luaproc.cc b/libs/ardour/luaproc.cc index 48daf8cede..b393a2e00d 100644 --- a/libs/ardour/luaproc.cc +++ b/libs/ardour/luaproc.cc @@ -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 (); if (c >= 0) {