From 080e7755a614a71e8a2dcd97fb7310fc3401e5ca Mon Sep 17 00:00:00 2001 From: nick_m Date: Fri, 23 Sep 2016 03:39:05 +1000 Subject: Remove _midi_regions_use_bbt_beats from Session, _start_pulse and _length_pulse from MidiRegion. - _start/length_beats are now quarter notes regardless of loaded session version. - also restores note colour update --- libs/ardour/session_state.cc | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'libs/ardour/session_state.cc') diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 532dcabbc8..0bcd5fbbd7 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -1003,20 +1003,6 @@ Session::load_state (string snapshot_name) return -1; } } - } else { - XMLNode* child; - if ((child = find_named_node (root, "ProgramVersion")) != 0) { - if ((prop = child->property ("modified-with")) != 0) { - std::string modified_with = prop->value (); - - const double modified_with_version = atof (modified_with.substr ( modified_with.find(" ", 0) + 1, string::npos).c_str()); - const int modified_with_revision = atoi (modified_with.substr (modified_with.find("-", 0) + 1, string::npos).c_str()); - - if (modified_with_version <= 5.3 && !(modified_with_version == 5.3 && modified_with_revision > 42)) { - _midi_regions_use_bbt_beats = true; - } - } - } } save_snapshot_name (snapshot_name); -- cgit v1.2.3