13
0

AudioClock: drop unused offset

Recent refactorigns made it dead code. Kill it, even though it seems on
track to something useful ...
This commit is contained in:
Mads Kiilerich 2022-11-06 16:34:03 +01:00
parent 1ca64eb8c1
commit 8c74099e80
2 changed files with 1 additions and 4 deletions

View File

@ -114,7 +114,6 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
protected:
void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
bool get_is_duration () const { return is_duration; }
Temporal::timecnt_t offset () const { return _offset; }
virtual void build_ops_menu ();
Gtk::Menu *ops_menu;
@ -142,8 +141,6 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
Temporal::timepos_t _limit_pos;
Temporal::timepos_t duration_position;
Temporal::timecnt_t _offset;
Glib::RefPtr<Pango::Layout> _layout;
bool _with_info;

View File

@ -101,7 +101,7 @@ timepos_t
MainClock::absolute_time () const
{
if (get_is_duration ()) {
return current_time () + offset ();
return current_time ();
} else {
return current_time ();
}