From 7c9f8fcbf2e6cce0a857b667410c3a658c175b7f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 13 May 2021 21:34:12 -0600 Subject: [PATCH] remove unused Source::SourcePropertyChanged signal --- libs/ardour/ardour/source.h | 2 -- libs/ardour/disk_writer.cc | 3 --- libs/ardour/region.cc | 1 - libs/ardour/source.cc | 10 ---------- 4 files changed, 16 deletions(-) diff --git a/libs/ardour/ardour/source.h b/libs/ardour/ardour/source.h index 70990f6f2a..919ac10913 100644 --- a/libs/ardour/ardour/source.h +++ b/libs/ardour/ardour/source.h @@ -136,8 +136,6 @@ public: void set_captured_for (std::string str) { _captured_for = str; } std::string captured_for() const { return _captured_for; } - static PBD::Signal1 > SourcePropertyChanged; - protected: DataType _type; Flag _flags; diff --git a/libs/ardour/disk_writer.cc b/libs/ardour/disk_writer.cc index 8121a00056..8583431cc2 100644 --- a/libs/ardour/disk_writer.cc +++ b/libs/ardour/disk_writer.cc @@ -1191,9 +1191,6 @@ DiskWriter::transport_stopped_wallclock (struct tm& when, time_t twhen, bool abo (*chan)->write_source->stamp (twhen); (*chan)->write_source->set_captured_xruns (capture_info.front()->xruns); - - /* "re-announce the source to the world */ - Source::SourcePropertyChanged ((*chan)->write_source); } diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index 88a6eb5d6d..dec42c4e90 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -1598,7 +1598,6 @@ Region::set_master_sources (const SourceList& srcs) for (SourceList::const_iterator i = _master_sources.begin (); i != _master_sources.end(); ++i) { (*i)->inc_use_count (); -// Source::SourcePropertyChanged( *i ); } } diff --git a/libs/ardour/source.cc b/libs/ardour/source.cc index 0e4290fc21..1fd8595b70 100644 --- a/libs/ardour/source.cc +++ b/libs/ardour/source.cc @@ -58,8 +58,6 @@ using namespace std; using namespace ARDOUR; using namespace PBD; -PBD::Signal1 > Source::SourcePropertyChanged; - Source::Source (Session& s, DataType type, const string& name, Flag flags) : SessionObject(s, name) @@ -354,13 +352,6 @@ void Source::inc_use_count () { g_atomic_int_inc (&_use_count); - - try { - boost::shared_ptr sptr = shared_from_this(); - SourcePropertyChanged (sptr); - } catch (...) { - /* no shared_ptr available, relax; */ - } } void @@ -379,7 +370,6 @@ Source::dec_use_count () try { boost::shared_ptr sptr = shared_from_this(); - SourcePropertyChanged (sptr); } catch (...) { /* no shared_ptr available, relax; */ }