From 8768c927968c2541bcac763d9a4f237081eaca4b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 3 Oct 2011 02:18:42 +0000 Subject: Remove static PortType enumeration from public/client side interface. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3523 a436a847-0d15-0410-975c-d299462d15a1 --- src/serialisation/Serialiser.cpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/serialisation/Serialiser.cpp') diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp index 22632810..f216028e 100644 --- a/src/serialisation/Serialiser.cpp +++ b/src/serialisation/Serialiser.cpp @@ -522,13 +522,6 @@ Serialiser::Impl::serialise_port(const Port* port, Sord::Curie(world, "lv2:OutputPort")); } - for (Port::PortTypes::const_iterator i = port->types().begin(); - i != port->types().end(); ++i) { - _model->add_statement(port_id, - Sord::Curie(world, "rdf:type"), - Sord::URI(world, i->uri().str())); - } - _model->add_statement(port_id, Sord::Curie(world, "lv2:symbol"), Sord::Literal(world, port->path().symbol())); @@ -540,19 +533,6 @@ Serialiser::Impl::serialise_port(const Port* port, port_id, Sord::Curie(world, "lv2:index"), AtomRDF::atom_to_node(*_model, Atom((int)port->index()))); - - if (!port->get_property(NS_LV2 "default").is_valid()) { - if (port->is_input()) { - if (port->value().is_valid()) { - _model->add_statement( - port_id, - Sord::Curie(world, "lv2:default"), - AtomRDF::atom_to_node(*_model, port->value())); - } else if (port->is_a(PortType::CONTROL)) { - LOG(warn) << "Port " << port->path() << " has no lv2:default" << endl; - } - } - } } } -- cgit v1.2.1