From a253083b17856adf509c6f0d3a5eb2888ff73cc3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 28 May 2009 22:30:46 +0000 Subject: Remove unused code. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2040 a436a847-0d15-0410-975c-d299462d15a1 --- src/serialisation/Parser.cpp | 46 +------------------------------------------- src/serialisation/Parser.hpp | 8 -------- 2 files changed, 1 insertion(+), 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 -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 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(); -} - - 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 data=boost::optional()); - boost::optional parse_port( - Ingen::Shared::World* world, - Ingen::Shared::CommonInterface* target, - Redland::Model& model, - const Redland::Node& subject, - const Raul::Path& path, - boost::optional data=boost::optional()); - bool parse_properties( Ingen::Shared::World* world, Ingen::Shared::CommonInterface* target, -- cgit v1.2.1