diff options
author | David Robillard <d@drobilla.net> | 2008-08-19 01:41:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-19 01:41:42 +0000 |
commit | 1b8f06504a155e75a9419dfa5c9bf9df1866e01d (patch) | |
tree | 8e9ce0ddaee84c76af66b2fa58cd41f73d8434eb /src/libs/client/ClientStore.cpp | |
parent | a7e39b85d7c35ec44c613e593c57ff27de0d06bc (diff) | |
download | ingen-1b8f06504a155e75a9419dfa5c9bf9df1866e01d.tar.gz ingen-1b8f06504a155e75a9419dfa5c9bf9df1866e01d.tar.bz2 ingen-1b8f06504a155e75a9419dfa5c9bf9df1866e01d.zip |
Factor out destroy (and object_destroyed) to common interface.
git-svn-id: http://svn.drobilla.net/lad/ingen@1443 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/ClientStore.cpp')
-rw-r--r-- | src/libs/client/ClientStore.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/libs/client/ClientStore.cpp b/src/libs/client/ClientStore.cpp index b6477b1f..0597aa21 100644 --- a/src/libs/client/ClientStore.cpp +++ b/src/libs/client/ClientStore.cpp @@ -42,7 +42,7 @@ ClientStore::ClientStore(SharedPtr<EngineInterface> engine, SharedPtr<SigClientI if (!emitter) return; - emitter->signal_object_destroyed.connect(sigc::mem_fun(this, &ClientStore::destruction)); + emitter->signal_object_destroyed.connect(sigc::mem_fun(this, &ClientStore::destroy)); emitter->signal_object_renamed.connect(sigc::mem_fun(this, &ClientStore::rename)); emitter->signal_new_plugin.connect(sigc::mem_fun(this, &ClientStore::new_plugin)); emitter->signal_new_patch.connect(sigc::mem_fun(this, &ClientStore::new_patch)); @@ -324,7 +324,6 @@ ClientStore::remove_object(const Path& path) return result; } else { - cerr << "[Store] Unable to find object " << path << " to remove." << endl; return SharedPtr<ObjectModel>(); } } @@ -372,14 +371,11 @@ ClientStore::add_plugin(SharedPtr<PluginModel> pm) void -ClientStore::destruction(const Path& path) +ClientStore::destroy(const std::string& path) { SharedPtr<ObjectModel> removed = remove_object(path); - removed.reset(); - - /*cerr << "Store removed object " << path - << ", count: " << removed.use_count();*/ + //cerr << "[ClientStore] removed object " << path << ", count: " << removed.use_count(); } void |