summaryrefslogtreecommitdiffstats
path: root/src/client/ClientStore.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-11-04 21:32:02 +0000
committerDavid Robillard <d@drobilla.net>2009-11-04 21:32:02 +0000
commit5ee6703c5038069d64f302ca2887f0571b17e42f (patch)
treefdfc22767f77c0a1d2cbe984c0ae7c9bd215b97d /src/client/ClientStore.cpp
parent2a525cc1aa5396f12f7b8fdaf3e8ea11cbe25247 (diff)
downloadingen-5ee6703c5038069d64f302ca2887f0571b17e42f.tar.gz
ingen-5ee6703c5038069d64f302ca2887f0571b17e42f.tar.bz2
ingen-5ee6703c5038069d64f302ca2887f0571b17e42f.zip
Remove orphan cruft.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2210 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/ClientStore.cpp')
-rw-r--r--src/client/ClientStore.cpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp
index 54f33006..57004d7d 100644
--- a/src/client/ClientStore.cpp
+++ b/src/client/ClientStore.cpp
@@ -38,8 +38,6 @@ ClientStore::ClientStore(SharedPtr<EngineInterface> engine, SharedPtr<SigClientI
, _emitter(emitter)
, _plugins(new Plugins())
{
- _handle_orphans = (engine && emitter);
-
if (!emitter)
return;
@@ -83,18 +81,6 @@ ClientStore::add_object(SharedPtr<ObjectModel> object)
(*this)[object->path()] = object;
signal_new_object.emit(object);
-
-#if 0
- resolve_property_orphans(parent);
- resolve_orphans(parent);
-
- SharedPtr<PortModel> port = PtrCast<PortModel>(object);
- if (port)
- resolve_connection_orphans(port);
-#endif
-
- } else {
- //add_orphan(object);
}
} else {
(*this)[object->path()] = object;
@@ -128,7 +114,6 @@ ClientStore::remove_object(const Path& path)
assert((*i).second->path() == path);
SharedPtr<ObjectModel> result = PtrCast<ObjectModel>((*i).second);
assert(result);
- //erase(i);
iterator descendants_end = find_descendants_end(i);
SharedPtr<Store::Objects> removed = yank(i, descendants_end);
@@ -322,7 +307,6 @@ ClientStore::put(const URI& uri, const Resource::Properties& properties)
} else {
SharedPtr<NodeModel> n(new NodeModel(p->second.get_uri(), path));
n->set_properties(properties);
- //add_plugin_orphan(n);
add_object(n);
}
} else {
@@ -456,7 +440,7 @@ ClientStore::connection_patch(const Path& src_port_path, const Path& dst_port_pa
bool
-ClientStore::attempt_connection(const Path& src_port_path, const Path& dst_port_path, bool add_orphan)
+ClientStore::attempt_connection(const Path& src_port_path, const Path& dst_port_path)
{
SharedPtr<PortModel> src_port = PtrCast<PortModel>(object(src_port_path));
SharedPtr<PortModel> dst_port = PtrCast<PortModel>(object(dst_port_path));
@@ -475,8 +459,6 @@ ClientStore::attempt_connection(const Path& src_port_path, const Path& dst_port_
patch->add_connection(cm);
return true;
- } else if (add_orphan) {
- //add_connection_orphan(make_pair(src_port_path, dst_port_path));
}
return false;
@@ -486,7 +468,7 @@ ClientStore::attempt_connection(const Path& src_port_path, const Path& dst_port_
void
ClientStore::connect(const Path& src_port_path, const Path& dst_port_path)
{
- attempt_connection(src_port_path, dst_port_path, true);
+ attempt_connection(src_port_path, dst_port_path);
}