From ee4493301a8247fb8032dd949f4c44cd4c641221 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 28 Oct 2009 15:34:07 +0000 Subject: [PATCH] Remove unused source reference count. git-svn-id: svn://localhost/ardour2/branches/3.0@5956 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/source.h | 4 ---- libs/ardour/source.cc | 2 -- 2 files changed, 6 deletions(-) diff --git a/libs/ardour/ardour/source.h b/libs/ardour/ardour/source.h index 62aca91365..b2e1381e43 100644 --- a/libs/ardour/ardour/source.h +++ b/libs/ardour/ardour/source.h @@ -82,9 +82,6 @@ class Source : public SessionObject, public boost::noncopyable virtual bool set_destructive (bool /*yn*/) { return false; } virtual bool length_mutable() const { return false; } - void use () { _in_use++; } - void disuse () { if (_in_use) { _in_use--; } } - static sigc::signal SourceCreated; sigc::signal > Switched; @@ -118,7 +115,6 @@ class Source : public SessionObject, public boost::noncopyable Glib::Mutex _playlist_lock; private: - uint32_t _in_use; void fix_writable_flags (); }; diff --git a/libs/ardour/source.cc b/libs/ardour/source.cc index 0304bfea8a..394d4b39af 100644 --- a/libs/ardour/source.cc +++ b/libs/ardour/source.cc @@ -53,7 +53,6 @@ Source::Source (Session& s, DataType type, const string& name, Flag flags) { _analysed = false; _timestamp = 0; - _in_use = 0; fix_writable_flags (); } @@ -65,7 +64,6 @@ Source::Source (Session& s, const XMLNode& node) { _timestamp = 0; _analysed = false; - _in_use = 0; if (set_state (node, Stateful::loading_state_version) || _type == DataType::NIL) { throw failed_constructor();