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:
parent
28bf53adcc
commit
1b77a35353
@ -45,8 +45,6 @@ class AudioLibrary
|
||||
|
||||
private:
|
||||
string src;
|
||||
|
||||
string uri2path (string uri);
|
||||
};
|
||||
|
||||
extern AudioLibrary* Library;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user