summaryrefslogtreecommitdiffstats
path: root/src/serialisation
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-28 15:57:14 +0000
committerDavid Robillard <d@drobilla.net>2009-05-28 15:57:14 +0000
commitee3bba21b4f2ea2e0e03f93bc9eded6681b9b482 (patch)
tree185987a38a9737a72840d41c5d5bb525f3d49aea /src/serialisation
parenteae3b1c1e100fc1b705a2d664cffae4aa5802568 (diff)
downloadingen-ee3bba21b4f2ea2e0e03f93bc9eded6681b9b482.tar.gz
ingen-ee3bba21b4f2ea2e0e03f93bc9eded6681b9b482.tar.bz2
ingen-ee3bba21b4f2ea2e0e03f93bc9eded6681b9b482.zip
Create objects via SetMetadataEvent.
Fix subpatch creation. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2025 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation')
-rw-r--r--src/serialisation/Parser.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/serialisation/Parser.cpp b/src/serialisation/Parser.cpp
index 4085a8fc..34d1d24c 100644
--- a/src/serialisation/Parser.cpp
+++ b/src/serialisation/Parser.cpp
@@ -71,52 +71,6 @@ relative_uri(Glib::ustring base, const Glib::ustring uri, bool leading_slash)
}
-#if 0
-static Glib::ustring
-chop_uri_scheme(const Glib::ustring in)
-{
- Glib::ustring out = in;
-
- // Remove scheme
- size_t scheme_end = out.find(":");
- if (scheme_end != string::npos)
- out = out.substr(scheme_end + 1);
-
- // Chop leading double slashes
- while (out.length() > 1 && out[0] == '/' && out[1] == '/')
- out = out.substr(1);
-
- return out;
-}
-
-
-static Glib::ustring
-uri_child(const Glib::ustring base, const Glib::ustring child, bool trailing_slash)
-{
- Glib::ustring ret = (base[base.length()-1] == '/' || child[0] == '/')
- ? base + child
- : base + '/' + child;
-
- if (trailing_slash && (ret == "" || ret[ret.length()-1] != '/'))
- ret = ret + "/";
- else if (!trailing_slash && ret != "" && ret[ret.length()-1] == '/')
- ret = ret.substr(0, ret.length()-1);
-
- return ret;
-}
-
-
-static Glib::ustring
-dequote_uri(const Glib::ustring in)
-{
- Glib::ustring out = in;
- if (out[0] == '<' && out[out.length()-1] == '>')
- out = out.substr(1, out.length()-2);
- return out;
-}
-#endif
-
-
static void
normalise_uri(Glib::ustring& uri)
{
@@ -801,8 +755,6 @@ Parser::parse_properties(
properties.insert(make_pair(key, AtomRDF::node_to_atom(val)));
}
- cout << "PROPERTIES: " << path << endl;
-
target->put(path, properties);
// Set passed properties last to override any loaded values