summaryrefslogtreecommitdiffstats
path: root/src/serialisation
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-13 02:08:57 +0000
committerDavid Robillard <d@drobilla.net>2012-08-13 02:08:57 +0000
commit16422ab7e8d52187aa7af07cd9ee585600453319 (patch)
tree781c8dd6815f68002e2b4de217c53e4bb3e06e1f /src/serialisation
parentefe8e2311ee2fed881f95cc1e72825906d21c7c1 (diff)
downloadingen-16422ab7e8d52187aa7af07cd9ee585600453319.tar.gz
ingen-16422ab7e8d52187aa7af07cd9ee585600453319.tar.bz2
ingen-16422ab7e8d52187aa7af07cd9ee585600453319.zip
Remove dead code.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4678 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation')
-rw-r--r--src/serialisation/Parser.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/serialisation/Parser.cpp b/src/serialisation/Parser.cpp
index f5569460..f67eaf7f 100644
--- a/src/serialisation/Parser.cpp
+++ b/src/serialisation/Parser.cpp
@@ -297,37 +297,9 @@ parse_patch(Ingen::World* world,
const Sord::URI ingen_polyphony(*world->rdf_world(), NS_INGEN "polyphony");
const Sord::URI lv2_port(*world->rdf_world(), LV2_CORE__port);
- const URIs& uris = world->uris();
const Sord::Node& patch = subject_node;
const Sord::Node nil;
- uint32_t patch_poly = 0;
-
- // Use parameter overridden polyphony, if given
- if (data) {
- GraphObject::Properties::iterator poly_param = data.get().find(uris.ingen_polyphony);
- if (poly_param != data.get().end() &&
- poly_param->second.type() == world->forge().Int) {
- patch_poly = poly_param->second.get_int32();
- }
- }
-
- // Load polyphony from file if necessary
- if (patch_poly == 0) {
- Sord::Iter i = model.find(subject_node, ingen_polyphony, nil);
- if (!i.end()) {
- const Sord::Node& poly_node = i.get_object();
- if (poly_node.is_int())
- patch_poly = poly_node.to_int();
- else
- LOG(warn) << "Patch has non-integer polyphony, assuming 1" << endl;
- }
- }
-
- // No polyphony found anywhere, use 1
- if (patch_poly == 0)
- patch_poly = 1;
-
const Glib::ustring base_uri = model.base_uri().to_string();
Raul::Symbol symbol("_");