From e466736e2d11459a0bbc403ece5ed26733658436 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 8 Apr 2022 11:56:24 -0600 Subject: [PATCH] temporal: remove MementoBinder API for tempo map undo/redo --- libs/temporal/tempo.cc | 11 ----------- libs/temporal/temporal/tempo.h | 9 --------- 2 files changed, 20 deletions(-) diff --git a/libs/temporal/tempo.cc b/libs/temporal/tempo.cc index 0f982bc604..539765ba62 100644 --- a/libs/temporal/tempo.cc +++ b/libs/temporal/tempo.cc @@ -3179,17 +3179,6 @@ TempoMap::twist_tempi (TempoSection* ts, const Tempo& bpm, const framepos_t fram #endif -void -TempoMap::MementoBinder::set_state (XMLNode const & node, int version) const -{ - /* fetch a writable copy of this thread's tempo map */ - TempoMap::WritableSharedPtr map (write_copy()); - /* change the state of the copy */ - map->set_state (node, version); - /* do the update step of RCU. This will also update this thread's map pointer */ - update (map); -} - void TempoMap::init () { diff --git a/libs/temporal/temporal/tempo.h b/libs/temporal/temporal/tempo.h index 6825d83218..2f395506c8 100644 --- a/libs/temporal/temporal/tempo.h +++ b/libs/temporal/temporal/tempo.h @@ -870,15 +870,6 @@ class /*LIBTEMPORAL_API*/ TempoMap : public PBD::StatefulDestructible LIBTEMPORAL_API XMLNode& get_state() const; - class MementoBinder : public MementoCommandBinder { - public: - LIBTEMPORAL_API MementoBinder () {} - LIBTEMPORAL_API void set_state (XMLNode const & node, int version) const; - LIBTEMPORAL_API XMLNode& get_state () const { return TempoMap::use()->get_state(); } - LIBTEMPORAL_API std::string type_name() const { return "Temporal::TempoMap"; } - LIBTEMPORAL_API void add_state (XMLNode*) {} - }; - typedef boost::intrusive::list> Tempos; typedef boost::intrusive::list> Meters; typedef boost::intrusive::list> MusicTimes;