diff options
author | David Robillard <d@drobilla.net> | 2012-08-10 23:09:54 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-10 23:09:54 +0000 |
commit | cbea22cd669eab29773674cb6c258ca80d45b878 (patch) | |
tree | 40de026548d19b0709ce46225b50f994f9481c07 /src/serialisation | |
parent | 762435ea92bbeed0b36afc5fa4303540f3e72ba1 (diff) | |
download | ingen-cbea22cd669eab29773674cb6c258ca80d45b878.tar.gz ingen-cbea22cd669eab29773674cb6c258ca80d45b878.tar.bz2 ingen-cbea22cd669eab29773674cb6c258ca80d45b878.zip |
Fix a ton of warnings.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4648 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation')
-rw-r--r-- | src/serialisation/Serialiser.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp index c1842022..5ad62e7c 100644 --- a/src/serialisation/Serialiser.cpp +++ b/src/serialisation/Serialiser.cpp @@ -160,23 +160,6 @@ Serialiser::Impl::write_manifest(const std::string& bundle_path, finish(); } -std::string -normal_bundle_uri(const std::string& uri) -{ - std::string ret = uri; - size_t i; - while ((i = ret.find("/./")) != std::string::npos) { - ret = ret.substr(0, i) + ret.substr(i + 2); - } - const size_t last_slash = ret.find_last_of("/"); - if (last_slash != std::string::npos) { - return ret.substr(0, last_slash); - } else { - return ret + "/"; - } - return ret; -} - void Serialiser::write_bundle(SharedPtr<const GraphObject> patch, const std::string& path) |