AudioClock: drop unused ModeChanged and is_transient

Clock settings are now retrieved using the clocks vector.
This commit is contained in:
Mads Kiilerich 2022-11-06 16:44:43 +01:00
parent 8c74099e80
commit acf803d310
2 changed files with 1 additions and 9 deletions

View file

@ -68,7 +68,6 @@ using namespace Temporal;
using Gtkmm2ext::Keyboard;
sigc::signal<void> AudioClock::ModeChanged;
vector<AudioClock*> AudioClock::clocks;
#define BBT_BAR_CHAR "|"
@ -79,7 +78,6 @@ AudioClock::AudioClock (const string& clock_name, bool transient, const string&
bool accept_on_focus_out)
: ops_menu (0)
, _name (clock_name)
, is_transient (transient)
, is_duration (duration)
, editable (allow_edit)
, _follows_playhead (follows_playhead)
@ -120,7 +118,7 @@ AudioClock::AudioClock (const string& clock_name, bool transient, const string&
set_mode (Timecode);
AudioClock::set (last_when(), true);
if (!is_transient) {
if (!transient) {
clocks.push_back (this);
}
@ -2314,10 +2312,6 @@ AudioClock::set_mode (Mode m, bool noemit)
AudioClock::set (last_when(), true);
if (!is_transient && !noemit) {
ModeChanged (); /* EMIT SIGNAL (the static one)*/
}
mode_changed (); /* EMIT SIGNAL (the member one) */
}