summaryrefslogtreecommitdiff
path: root/libs/ardour/export_handler.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-11-18 02:31:54 -0500
committerDavid Robillard <d@drobilla.net>2014-11-18 02:55:03 -0500
commit6e482b3488711dc0de6a5c452ba7be20a6c47fa2 (patch)
treeda610b6717e6f8fb941f1e980a4f39a9eff587aa /libs/ardour/export_handler.cc
parent8dde26da7b57ae9dee7858e481605613098db59b (diff)
Remove unused variable and redundant arithmetic.
Diffstat (limited to 'libs/ardour/export_handler.cc')
-rw-r--r--libs/ardour/export_handler.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/libs/ardour/export_handler.cc b/libs/ardour/export_handler.cc
index 38086bd273..c80f1a2af4 100644
--- a/libs/ardour/export_handler.cc
+++ b/libs/ardour/export_handler.cc
@@ -439,8 +439,8 @@ ExportHandler::export_cd_marker_file (ExportTimespanPtr timespan, ExportFormatSp
/* Start actual marker stuff */
- framepos_t last_end_time = timespan->get_start(), last_start_time = timespan->get_start();
- status.track_position = last_start_time - timespan->get_start();
+ framepos_t last_end_time = timespan->get_start();
+ status.track_position = 0;
for (i = temp.begin(); i != temp.end(); ++i) {
@@ -471,20 +471,17 @@ ExportHandler::export_cd_marker_file (ExportTimespanPtr timespan, ExportFormatSp
if (nexti != temp.end()) {
status.track_duration = (*nexti)->start() - last_end_time;
- last_start_time = (*i)->start();
last_end_time = (*nexti)->start();
} else {
// this was the last marker, use timespan end
status.track_duration = timespan->get_end() - last_end_time;
- last_start_time = (*i)->start();
last_end_time = timespan->get_end();
}
} else {
// range
status.track_duration = (*i)->end() - last_end_time;
- last_start_time = (*i)->start();
last_end_time = (*i)->end();
}