From b2be7cb6bd797f40d998a80d61cc88a75632b193 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 28 Jun 2016 16:05:35 -0400 Subject: remove debug output and add a few suggestive comments --- libs/ardour/session_playlists.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libs/ardour/session_playlists.cc') diff --git a/libs/ardour/session_playlists.cc b/libs/ardour/session_playlists.cc index c2e0461546..368b043ef7 100644 --- a/libs/ardour/session_playlists.cc +++ b/libs/ardour/session_playlists.cc @@ -244,7 +244,6 @@ SessionPlaylists::destroy_region (boost::shared_ptr r) } } - void SessionPlaylists::find_equivalent_playlist_regions (boost::shared_ptr region, vector >& result) { @@ -260,7 +259,10 @@ SessionPlaylists::source_use_count (boost::shared_ptr src) const { uint32_t count = 0; - cerr << "\t\tcheck " << playlists.size() << " playlists\n"; + /* XXXX this can go wildly wrong in the presence of circular references + * between compound regions. + */ + for (List::const_iterator p = playlists.begin(); p != playlists.end(); ++p) { if ((*p)->uses_source (src)) { ++count; @@ -268,7 +270,6 @@ SessionPlaylists::source_use_count (boost::shared_ptr src) const } } - cerr << "\t\tcheck " << playlists.size() << " unused playlists\n"; for (List::const_iterator p = unused_playlists.begin(); p != unused_playlists.end(); ++p) { if ((*p)->uses_source (src)) { ++count; @@ -518,4 +519,3 @@ SessionPlaylists::foreach (boost::function