From 15cb25756c830a07382cb4a0ce4b82e22735df3d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 9 Jun 2008 02:32:19 +0000 Subject: Serialiser cleanups. git-svn-id: http://svn.drobilla.net/lad/ingen@1236 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/serialisation/Serialiser.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/libs/serialisation/Serialiser.cpp b/src/libs/serialisation/Serialiser.cpp index 36c73d2f..a81c76f6 100644 --- a/src/libs/serialisation/Serialiser.cpp +++ b/src/libs/serialisation/Serialiser.cpp @@ -154,15 +154,6 @@ Redland::Node Serialiser::path_to_node_id(const Path& path) { assert(_model); - /*string ret = path.substr(1); - - for (size_t i=0; i < ret.length(); ++i) { - if (ret[i] == '/') - ret[i] = '_'; - } - - return Redland::Node(Node::BLANK, ret); - */ NodeMap::iterator i = _node_map.find(path); if (i != _node_map.end()) { @@ -423,6 +414,13 @@ Serialiser::serialise_connection(SharedPtr connection) throw (std::l const Redland::Node src_node = path_to_node_id(connection->src_port_path()); const Redland::Node dst_node = path_to_node_id(connection->dst_port_path()); + /* This would allow associating data with the connection... */ + /*const Redland::Node connection_node = _world.blank_id(); + _model->add_statement(connection_node, "ingen:hasSource", src_node); + _model->add_statement(dst_node, "ingen:hasConnection", connection_node); + */ + + /* ... but this is cleaner */ _model->add_statement(dst_node, "ingen:connectedTo", src_node); } -- cgit v1.2.1