the Properties & 64bit region commit
[ardour.git] / libs / ardour / session_state.cc
index 93cf6b3791b82036355819c4b84f870e2d45bca4..face9388bc82ef58b2b4705075c7571b3fca4bf0 100644 (file)
@@ -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> 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);