Remove redundant condition
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Sun, 31 Jul 2016 11:32:39 +0000 (13:32 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Mon, 1 Aug 2016 07:46:20 +0000 (09:46 +0200)
Since can_replicate is true at loop start, and in the loop body there is
a break; after every can_replicate=false, there's no point to test its
value in the loop condition.

libs/ardour/plugin_insert.cc

index a7e512713df73cfb4fa1ffa6debad362ce4b732c..bfa86fbc80769006f6c2b36db9faa10f991c56dc 100644 (file)
@@ -2161,7 +2161,7 @@ PluginInsert::automatic_can_support_io_configuration (ChanCount const & inx, Cha
 
        uint32_t f             = 0;
        bool     can_replicate = true;
-       for (DataType::iterator t = DataType::begin(); t != DataType::end() && can_replicate; ++t) {
+       for (DataType::iterator t = DataType::begin(); t != DataType::end(); ++t) {
 
                // ignore side-chains
                uint32_t nin = ns_inputs.get (*t);