Use new Route fed-by API (2/2)

This commit is contained in:
Robin Gareus
2022-05-05 01:23:38 +02:00
parent 9b1440ab23
commit 44bb8caa65

View File

@@ -6613,17 +6613,11 @@ OSC::cue_get_sorted_stripables(boost::shared_ptr<Stripable> aux, uint32_t id, lo
{
Sorted sorted;
#if 0
boost::shared_ptr<Route> aux_rt = boost::dynamic_pointer_cast<Route> (aux);
Route::FedBy fed_by = aux_rt->fed_by();
for (Route::FedBy::iterator i = fed_by.begin(); i != fed_by.end(); ++i) {
if (i->sends_only) {
boost::shared_ptr<Stripable> s (i->r.lock());
sorted.push_back (s);
s->DropReferences.connect (*this, MISSING_INVALIDATOR, boost::bind (&OSC::_cue_set, this, id, addr), this);
}
for (auto const& s : aux_rt->signal_sources (true)) {
sorted.push_back (s);
s->DropReferences.connect (*this, MISSING_INVALIDATOR, boost::bind (&OSC::_cue_set, this, id, addr), this);
}
#endif
sort (sorted.begin(), sorted.end(), StripableByPresentationOrder());
return sorted;