mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
misc: Remove duplicate function to branch a path
This commit is contained in:
@@ -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(".");
|
||||
|
||||
Reference in New Issue
Block a user