summaryrefslogtreecommitdiff
path: root/libs/ardour/tempo.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-11-09 01:10:21 +1100
committernick_m <mainsbridge@gmail.com>2016-11-11 03:37:08 +1100
commit5aafb0b53486a92a4e966510388d9c7cfbb799fb (patch)
treea4b2ad4c0587d509cd239abd144a026fcb6bcdb9 /libs/ardour/tempo.cc
parent43f79cb00cf524b148415bc9284e18c960a13653 (diff)
remove recently added xml nodes.
Diffstat (limited to 'libs/ardour/tempo.cc')
-rw-r--r--libs/ardour/tempo.cc21
1 files changed, 0 insertions, 21 deletions
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc
index 51b9111878..bd23e02ebd 100644
--- a/libs/ardour/tempo.cc
+++ b/libs/ardour/tempo.cc
@@ -96,7 +96,6 @@ TempoSection::TempoSection (const XMLNode& node, framecnt_t sample_rate)
BBT_Time bbt;
double pulse;
uint32_t frame;
- double minute;
bool had_beats_per_minute = false;
_legacy_bbt = BBT_Time (0, 0, 0);
@@ -129,14 +128,6 @@ TempoSection::TempoSection (const XMLNode& node, framecnt_t sample_rate)
}
}
- if ((prop = node.property ("minute")) != 0) {
- if (sscanf (prop->value().c_str(), "%lf", &minute) != 1) {
- error << _("TempoSection XML node has an illegal \"minute\" value") << endmsg;
- } else {
- set_minute (minute);
- }
- }
-
/* replace old beats-per-minute with note-types-per-minute */
if ((prop = node.property ("beats-per-minute")) != 0) {
info << _("Renaming legacy \"beats-per-minute\" XML node to note-types-per-minute") << endmsg;
@@ -215,8 +206,6 @@ TempoSection::get_state() const
root->add_property ("pulse", buf);
snprintf (buf, sizeof (buf), "%li", frame());
root->add_property ("frame", buf);
- snprintf (buf, sizeof (buf), "%lf", minute());
- root->add_property ("minute", buf);
snprintf (buf, sizeof (buf), "%lf", _note_types_per_minute);
root->add_property ("note-types-per-minute", buf);
snprintf (buf, sizeof (buf), "%lf", _note_type);
@@ -522,7 +511,6 @@ MeterSection::MeterSection (const XMLNode& node, const framecnt_t sample_rate)
double beat = 0.0;
framepos_t frame = 0;
pair<double, BBT_Time> start;
- double minute = 0.0;
if ((prop = node.property ("start")) != 0) {
if (sscanf (prop->value().c_str(), "%" PRIu32 "|%" PRIu32 "|%" PRIu32,
@@ -572,13 +560,6 @@ MeterSection::MeterSection (const XMLNode& node, const framecnt_t sample_rate)
set_minute (minute_at_frame (frame));
}
}
- if ((prop = node.property ("minute")) != 0) {
- if (sscanf (prop->value().c_str(), "%lf", &minute) != 1) {
- error << _("MeterSection XML node has an illegal \"frame\" value") << endmsg;
- } else {
- set_minute (minute);
- }
- }
/* beats-per-bar is old; divisions-per-bar is new */
@@ -641,8 +622,6 @@ MeterSection::get_state() const
root->add_property ("note-type", buf);
snprintf (buf, sizeof (buf), "%li", frame());
root->add_property ("frame", buf);
- snprintf (buf, sizeof (buf), "%lf", minute());
- root->add_property ("minute", buf);
root->add_property ("lock-style", enum_2_string (position_lock_style()));
snprintf (buf, sizeof (buf), "%lf", _divisions_per_bar);
root->add_property ("divisions-per-bar", buf);