misc: Remove duplicate function to branch a path

This commit is contained in:
Christophe Dumez 2012-02-16 21:32:18 +02:00
parent 0d0c7559bf
commit 60d9bfe077
3 changed files with 6 additions and 10 deletions

View file

@ -888,6 +888,10 @@ bool misc::isValidTorrentFile(const QString &torrent_path) {
return true;
}
/**
* Returns a path constructed from all the elements of file_path except the last.
* A typical use is to obtain the parent path for a path supplied by the user.
*/
QString misc::branchPath(QString file_path, bool uses_slashes)
{
if(!uses_slashes)