From cbea22cd669eab29773674cb6c258ca80d45b878 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 10 Aug 2012 23:09:54 +0000 Subject: Fix a ton of warnings. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4648 a436a847-0d15-0410-975c-d299462d15a1 --- src/serialisation/Serialiser.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/serialisation') 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 patch, const std::string& path) -- cgit v1.2.1