summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-28 22:30:46 +0000
committerDavid Robillard <d@drobilla.net>2009-05-28 22:30:46 +0000
commita253083b17856adf509c6f0d3a5eb2888ff73cc3 (patch)
tree1a5b7dd5e6f763d69658b880a776cb63491642a9 /src
parent304454c63ea00b57b55bc2023e1d52fb51e8ef7f (diff)
downloadingen-a253083b17856adf509c6f0d3a5eb2888ff73cc3.tar.gz
ingen-a253083b17856adf509c6f0d3a5eb2888ff73cc3.tar.bz2
ingen-a253083b17856adf509c6f0d3a5eb2888ff73cc3.zip
Remove unused code.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2040 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/serialisation/Parser.cpp46
-rw-r--r--src/serialisation/Parser.hpp8
2 files changed, 1 insertions, 53 deletions
diff --git a/src/serialisation/Parser.cpp b/src/serialisation/Parser.cpp
index 02e08308..4c1ac74e 100644
--- a/src/serialisation/Parser.cpp
+++ b/src/serialisation/Parser.cpp
@@ -286,7 +286,7 @@ Parser::parse(
} else if (rdf_class == node_class) {
ret = parse_node(world, target, model, subject, path, data);
} else if (rdf_class == in_port_class || rdf_class == out_port_class) {
- ret = parse_port(world, target, model, subject, path, data);
+ cerr << "PARSE PORT" << endl;
}
if (!ret) {
@@ -650,50 +650,6 @@ Parser::parse_node(
}
-boost::optional<Path>
-Parser::parse_port(
- Ingen::Shared::World* world,
- Ingen::Shared::CommonInterface* target,
- Redland::Model& model,
- const Redland::Node& subject_node,
- const Raul::Path& path,
- boost::optional<GraphObject::Properties> data)
-{
-#if 0
- const Glib::ustring subject = subject_node.to_turtle_token();
-
- Redland::Query query(*world->rdf_world, Glib::ustring(
- "SELECT DISTINCT ?type ?datatype ?value WHERE {\n") +
- subject + " a ?type ;\n"
- " a ?datatype .\n"
- " FILTER (?type != ?datatype && ((?type = lv2:InputPort) || (?type = lv2:OutputPort)))\n"
- "OPTIONAL { " + subject + " ingen:value ?value . }\n"
- "}");
-
- Redland::Query::Results results = query.run(*world->rdf_world, model);
-
- for (Redland::Query::Results::iterator i = results.begin(); i != results.end(); ++i) {
- Glib::Mutex::Lock lock(world->rdf_world->mutex());
- const string type = world->rdf_world->qualify((*i)["type"].to_string());
- const string datatype = world->rdf_world->qualify((*i)["datatype"].to_string());
- const Redland::Node& val_node = (*i)["value"];
-
- // TODO: read index for plugin wrapper
- bool is_output = (type == "lv2:OutputPort");
- target->new_port(path, datatype, 0, is_output);
-
- if (val_node.to_string() != "")
- target->set_port_value(path, AtomRDF::node_to_atom(val_node));
- }
-
- parse_properties(world, target, model, subject_node, path, data);
- return path;
-#endif
- cerr << "PARSE PORT" << endl;
- return boost::optional<Path>();
-}
-
-
bool
Parser::parse_connections(
Ingen::Shared::World* world,
diff --git a/src/serialisation/Parser.hpp b/src/serialisation/Parser.hpp
index b980a4fc..4235f197 100644
--- a/src/serialisation/Parser.hpp
+++ b/src/serialisation/Parser.hpp
@@ -95,14 +95,6 @@ private:
const Raul::Path& path,
boost::optional<Properties> data=boost::optional<Properties>());
- boost::optional<Raul::Path> parse_port(
- Ingen::Shared::World* world,
- Ingen::Shared::CommonInterface* target,
- Redland::Model& model,
- const Redland::Node& subject,
- const Raul::Path& path,
- boost::optional<Properties> data=boost::optional<Properties>());
-
bool parse_properties(
Ingen::Shared::World* world,
Ingen::Shared::CommonInterface* target,