13
0

Remove AudioLibrary::uri2path and use Glib::filename_from_path in its place

git-svn-id: svn://localhost/ardour2/trunk@2048 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Tim Mayberry 2007-06-27 12:12:14 +00:00
parent 28bf53adcc
commit 1b77a35353
2 changed files with 2 additions and 11 deletions

View File

@ -45,8 +45,6 @@ class AudioLibrary
private:
string src;
string uri2path (string uri);
};
extern AudioLibrary* Library;

View File

@ -69,13 +69,6 @@ AudioLibrary::save_changes ()
}
}
string
AudioLibrary::uri2path (string uri)
{
string path = xmlURIUnescapeString(uri.c_str(), 0, 0);
return path.substr(5);
}
void
AudioLibrary::set_tags (string member, vector<string> tags)
{
@ -141,8 +134,8 @@ AudioLibrary::search_members_and (vector<string>& members, const vector<string>
if (*head != 0) {
lrdf_uris* ulist = lrdf_match_multi(*head);
for (uint32_t j = 0; ulist && j < ulist->count; ++j) {
// cerr << "AND: " << uri2path(ulist->items[j]) << endl;
members.push_back(uri2path(ulist->items[j]));
// cerr << "AND: " << Glib::filename_from_uri(ulist->items[j]) << endl;
members.push_back(Glib::filename_from_uri(ulist->items[j]));
}
lrdf_free_uris(ulist);