diff options
author | David Robillard <d@drobilla.net> | 2009-10-28 15:34:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-10-28 15:34:07 +0000 |
commit | ee4493301a8247fb8032dd949f4c44cd4c641221 (patch) | |
tree | ff7d8cac1dea05d01ca958b83b056bd74b2e155e | |
parent | fe910cdc132c0f18d85c5aedebbbdbef58ed2ac7 (diff) |
Remove unused source reference count.
git-svn-id: svn://localhost/ardour2/branches/3.0@5956 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | libs/ardour/ardour/source.h | 4 | ||||
-rw-r--r-- | libs/ardour/source.cc | 2 |
2 files changed, 0 insertions, 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<void,Source*> SourceCreated; sigc::signal<void,boost::shared_ptr<Source> > 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(); |