From c9582da23371bfd40f3087f5a9112d081ef012da Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 20 Feb 2009 00:30:42 +0000 Subject: Make source length a dynamic thing. Update MIDI region length (actually and visually) when position changes. git-svn-id: svn://localhost/ardour2/branches/3.0@4644 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/source.cc | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'libs/ardour/source.cc') diff --git a/libs/ardour/source.cc b/libs/ardour/source.cc index 5c2ac132e1..61ace5a72b 100644 --- a/libs/ardour/source.cc +++ b/libs/ardour/source.cc @@ -54,7 +54,6 @@ Source::Source (Session& s, DataType type, const string& name, Flag flags) { _analysed = false; _timestamp = 0; - _length = 0; _in_use = 0; } @@ -65,7 +64,6 @@ Source::Source (Session& s, const XMLNode& node) , _timeline_position(0) { _timestamp = 0; - _length = 0; _analysed = false; _in_use = 0; @@ -139,14 +137,6 @@ Source::set_state (const XMLNode& node) return 0; } -void -Source::update_length (sframes_t pos, sframes_t cnt) -{ - if (pos + cnt > _length) { - _length = pos + cnt; - } -} - void Source::add_playlist (boost::shared_ptr pl) { -- cgit v1.2.3