X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fsession_state.cc;h=face9388bc82ef58b2b4705075c7571b3fca4bf0;hb=ce7a5e1c9fa3edf2d9cc66875505e402a0aaa6f6;hp=93cf6b3791b82036355819c4b84f870e2d45bca4;hpb=cdcc4d3720d8168a158f6a5a5f23e9ce981bc68c;p=ardour.git diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 93cf6b3791..face9388bc 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -92,7 +92,6 @@ #include "ardour/midi_track.h" #include "ardour/named_selection.h" #include "ardour/processor.h" -#include "ardour/region_command.h" #include "ardour/region_factory.h" #include "ardour/route_group.h" #include "ardour/send.h" @@ -2946,16 +2945,6 @@ Session::restore_history (string snapshot_name) error << _("Failed to downcast MidiSource for DeltaCommand") << endmsg; } - } else if (n->name() == "RegionCommand") { - PBD::ID id (n->property ("region")->value()); - boost::shared_ptr region = RegionFactory::region_by_id (id); - - if (region) { - ut->add_command (new RegionCommand (region, *n)); - } else { - error << string_compose (_("Region command references an unknown region ID=%1"), id.to_s()) << endmsg; - } - } else if (n->name() == "StatefulDiffCommand") { if ((c = stateful_diff_command_factory (n))) { ut->add_command (c);