forked from qt-creator/qt-creator
Remove dead code
Reviewd-By: danimo
This commit is contained in:
@@ -92,8 +92,6 @@ QTCREATOR_UTILS_EXPORT QString commonPath(const QStringList &files)
|
|||||||
lastSeparatorPos = common.lastIndexOf(QLatin1Char('\\'));
|
lastSeparatorPos = common.lastIndexOf(QLatin1Char('\\'));
|
||||||
if (lastSeparatorPos == -1)
|
if (lastSeparatorPos == -1)
|
||||||
return QString();
|
return QString();
|
||||||
if (lastSeparatorPos == -1)
|
|
||||||
return QString();
|
|
||||||
#ifdef Q_OS_UNIX
|
#ifdef Q_OS_UNIX
|
||||||
if (lastSeparatorPos == 0) // Unix: "/a", "/b" -> '/'
|
if (lastSeparatorPos == 0) // Unix: "/a", "/b" -> '/'
|
||||||
lastSeparatorPos = 1;
|
lastSeparatorPos = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user