13
0

temporal: remove MementoBinder API for tempo map undo/redo

This commit is contained in:
Paul Davis 2022-04-08 11:56:24 -06:00
parent a806ede94d
commit e466736e2d
2 changed files with 0 additions and 20 deletions

View File

@ -3179,17 +3179,6 @@ TempoMap::twist_tempi (TempoSection* ts, const Tempo& bpm, const framepos_t fram
#endif #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 void
TempoMap::init () TempoMap::init ()
{ {

View File

@ -870,15 +870,6 @@ class /*LIBTEMPORAL_API*/ TempoMap : public PBD::StatefulDestructible
LIBTEMPORAL_API XMLNode& get_state() const; LIBTEMPORAL_API XMLNode& get_state() const;
class MementoBinder : public MementoCommandBinder<TempoMap> {
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<TempoPoint, boost::intrusive::base_hook<tempo_hook>> Tempos; typedef boost::intrusive::list<TempoPoint, boost::intrusive::base_hook<tempo_hook>> Tempos;
typedef boost::intrusive::list<MeterPoint, boost::intrusive::base_hook<meter_hook>> Meters; typedef boost::intrusive::list<MeterPoint, boost::intrusive::base_hook<meter_hook>> Meters;
typedef boost::intrusive::list<MusicTimePoint, boost::intrusive::base_hook<bartime_hook>> MusicTimes; typedef boost::intrusive::list<MusicTimePoint, boost::intrusive::base_hook<bartime_hook>> MusicTimes;