diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-05-11 16:31:14 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-06-29 14:18:12 -0400 |
commit | 8488d8f6a53d3385893a435481cb60ed21c21ea0 (patch) | |
tree | a3c0bfa5c470b35f52c3d1d1ec8bd9f9cf334565 /libs/ardour/location.cc | |
parent | fb89ff46431af7545ab14081f3257455367f95c1 (diff) |
remove unnecessary and unused changes from grygorii
Diffstat (limited to 'libs/ardour/location.cc')
-rw-r--r-- | libs/ardour/location.cc | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index 0758642336..e890911225 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -58,7 +58,6 @@ Location::Location (Session& s) , _flags (Flags (0)) , _locked (false) , _position_lock_style (AudioTime) - , _block_change_notifications (false) { assert (_start >= 0); assert (_end >= 0); @@ -73,7 +72,6 @@ Location::Location (Session& s, framepos_t sample_start, framepos_t sample_end, , _flags (bits) , _locked (false) , _position_lock_style (s.config.get_glue_new_markers_to_bars_and_beats() ? MusicTime : AudioTime) - , _block_change_notifications (false) { recompute_bbt_from_frames (); @@ -92,7 +90,6 @@ Location::Location (const Location& other) , _bbt_end (other._bbt_end) , _flags (other._flags) , _position_lock_style (other._position_lock_style) - , _block_change_notifications (false) { /* copy is not locked even if original was */ @@ -410,10 +407,7 @@ Location::set (framepos_t s, framepos_t e, bool allow_bbt_recompute) if (start_change && end_change) { changed (this); - - if (!_block_change_notifications) { - Changed (); - } + Changed (); } return 0; @@ -436,10 +430,7 @@ Location::move_to (framepos_t pos) recompute_bbt_from_frames (); changed (this); /* EMIT SIGNAL */ - - if (!_block_change_notifications) { - Changed (); /* EMIT SIGNAL */ - } + Changed (); /* EMIT SIGNAL */ } assert (_start >= 0); @@ -699,10 +690,7 @@ Location::set_state (const XMLNode& node, int version) recompute_bbt_from_frames (); changed (this); /* EMIT SIGNAL */ - - if (!_block_change_notifications) { - Changed (); /* EMIT SIGNAL */ - } + Changed (); /* EMIT SIGNAL */ assert (_start >= 0); assert (_end >= 0); @@ -1085,9 +1073,7 @@ Locations::set_state (const XMLNode& node, int version) loc = *i; // changed locations will be updated by Locations::changed signal - loc->set_block_change_notifications (true); loc->set_state (**niter, version); - loc->set_block_change_notifications (false); } else { loc = new Location (_session, **niter); } |