summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/session.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-03-23 14:28:12 +0100
committerRobin Gareus <robin@gareus.org>2019-03-23 14:31:00 +0100
commitff8bd935cf27a833f5611d2123230893a9862c4f (patch)
tree18127ff77aa7ca0566c6bcac2e7cf22ad2bdc71e /libs/ardour/ardour/session.h
parent73029d45baf97da6b0a2c8ec9688c33da69fff8d (diff)
Remove chicken/egg d'tor
Session::Controllables is a shared_ptr<> list. As long as the session exists the Controllables will be around. Destroyed(*) can only be called after the session is destroyed and releases the shared_ptr<> NB. this code had a nice hack to construct a "shared_from_this" workaround. For future reference: struct null_deleter { void operator()(void const *) const {} }; boost::shared_ptr<Controllable>(c, null_deleter())
Diffstat (limited to 'libs/ardour/ardour/session.h')
-rw-r--r--libs/ardour/ardour/session.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h
index ab7b59c5c6..265e197d00 100644
--- a/libs/ardour/ardour/session.h
+++ b/libs/ardour/ardour/session.h
@@ -1079,7 +1079,6 @@ public:
boost::shared_ptr<AutomationControl> automation_control_by_id (const PBD::ID&);
void add_controllable (boost::shared_ptr<PBD::Controllable>);
- void remove_controllable (PBD::Controllable*);
boost::shared_ptr<PBD::Controllable> solo_cut_control() const;