Remove unused ustring version of url_decode(). Rework

the other version to be a bit simpler, avoiding #4800.


git-svn-id: svn://localhost/ardour2/branches/3.0@11771 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-04-01 14:30:06 +00:00
parent 3240a93aad
commit 7f417fb44f
4 changed files with 16 additions and 90 deletions

View file

@ -3132,14 +3132,13 @@ Editor::convert_drop_to_paths (
if ((*i).substr (0,7) == "file://") {
string p = *i;
PBD::url_decode (p);
string const p = PBD::url_decode (*i);
// scan forward past three slashes
string::size_type slashcnt = 0;
string::size_type n = 0;
string::iterator x = p.begin();
string::const_iterator x = p.begin();
while (slashcnt < 3 && x != p.end()) {
if ((*x) == '/') {