diff options
author | Carl Hetherington <carl@carlh.net> | 2010-12-01 17:42:18 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-12-01 17:42:18 +0000 |
commit | f500846fd46d6eab97e5e02fd795b9a938464773 (patch) | |
tree | f21c64641b8067a9bc7a8f2b4d38a97f1bc05ea6 /gtk2_ardour/audio_clock.cc | |
parent | 93d65777b80627411fde1a8b7e391633a936dd8c (diff) |
Remove unused timecode offset stuff.
git-svn-id: svn://localhost/ardour2/branches/3.0@8143 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_clock.cc')
-rw-r--r-- | gtk2_ardour/audio_clock.cc | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index d80e7e5b30..90cab4ec9f 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -216,8 +216,6 @@ AudioClock::AudioClock (const string& clock_name, bool transient, const string& clock_base.add_events (Gdk::BUTTON_PRESS_MASK|Gdk::BUTTON_RELEASE_MASK|Gdk::SCROLL_MASK); clock_base.signal_button_release_event().connect (sigc::bind (sigc::mem_fun (*this, &AudioClock::field_button_release_event), Timecode_Hours)); - Session::TimecodeOffsetChanged.connect (_session_connections, invalidator (*this), boost::bind (&AudioClock::timecode_offset_changed, this), gui_context()); - if (editable) { setup_events (); } @@ -475,25 +473,6 @@ AudioClock::set (nframes_t when, bool force, nframes_t offset, char which) } void -AudioClock::timecode_offset_changed () -{ - nframes_t current; - - switch (_mode) { - case Timecode: - if (is_duration) { - current = current_duration(); - } else { - current = current_time (); - } - set (current, true); - break; - default: - break; - } -} - -void AudioClock::set_frames (nframes_t when, bool /*force*/) { char buf[32]; @@ -1503,7 +1482,7 @@ AudioClock::timecode_frame_from_display () const timecode.rate = _session->timecode_frames_per_second(); timecode.drop= _session->timecode_drop_frames(); - _session->timecode_to_sample( timecode, sample, false /* use_offset */, false /* use_subframes */ ); + _session->timecode_to_sample (timecode, sample, false /* use_subframes */); #if 0 |