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:
parent
1ca64eb8c1
commit
8c74099e80
@ -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;
|
||||
|
@ -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 ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user