rename TempoMap::cut_time() to remove_time()

Everywhere else, 'cut time' has been renamed to 'remove time': for consistency,
rename this one remaining function to match.
This commit is contained in:
Colin Fletcher 2015-06-25 15:09:49 +01:00
parent 5aa834e1d8
commit 94e4e2f55f
3 changed files with 3 additions and 3 deletions

View File

@ -7215,7 +7215,7 @@ Editor::remove_time (framepos_t pos, framecnt_t frames, InsertTimeOption opt,
if (tempo_too) {
XMLNode& before (_session->tempo_map().get_state());
if (_session->tempo_map().cut_time (pos, frames) ) {
if (_session->tempo_map().remove_time (pos, frames) ) {
XMLNode& after (_session->tempo_map().get_state());
_session->add_command (new MementoCommand<TempoMap>(_session->tempo_map(), &before, &after));
commit = true;

View File

@ -323,7 +323,7 @@ class LIBARDOUR_API TempoMap : public PBD::StatefulDestructible
void change_initial_tempo (double bpm, double note_type);
void insert_time (framepos_t, framecnt_t);
bool cut_time (framepos_t where, framecnt_t amount); //returns true if anything was moved
bool remove_time (framepos_t where, framecnt_t amount); //returns true if anything was moved
int n_tempos () const;
int n_meters () const;

View File

@ -1903,7 +1903,7 @@ TempoMap::insert_time (framepos_t where, framecnt_t amount)
PropertyChanged (PropertyChange ());
}
bool
TempoMap::cut_time (framepos_t where, framecnt_t amount)
TempoMap::remove_time (framepos_t where, framecnt_t amount)
{
bool moved = false;