From 6e482b3488711dc0de6a5c452ba7be20a6c47fa2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 18 Nov 2014 02:31:54 -0500 Subject: Remove unused variable and redundant arithmetic. --- libs/ardour/export_handler.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'libs/ardour/export_handler.cc') 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(); } -- cgit v1.2.3