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

@@ -80,14 +80,6 @@ public:
static void chmod644(const QDir& folder);
static inline QString removeLastPathPart(QString path) {
if(path.isEmpty()) return path;
path.replace("\\", "/");
QStringList tmp = path.split("/");
tmp.removeLast();
return tmp.join("/");
}
static inline QString file_extension(const QString &filename) {
QString extension;
int point_index = filename.lastIndexOf(".");