forked from qt-creator/qt-creator
PythonEditor: Remove dead code
Change-Id: I55f7d513755857a5759ba8688e5cfeccbdaa379f Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
f2dd427f3d
commit
b1c37910f1
@@ -362,14 +362,6 @@ bool PythonProject::addFiles(const QStringList &filePaths)
|
|||||||
foreach (const QString &filePath, filePaths)
|
foreach (const QString &filePath, filePaths)
|
||||||
newList.append(baseDir.relativeFilePath(filePath));
|
newList.append(baseDir.relativeFilePath(filePath));
|
||||||
|
|
||||||
QSet<QString> toAdd;
|
|
||||||
|
|
||||||
foreach (const QString &filePath, filePaths) {
|
|
||||||
QString directory = QFileInfo(filePath).absolutePath();
|
|
||||||
if (!toAdd.contains(directory))
|
|
||||||
toAdd << directory;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool result = saveRawList(newList, projectFilePath().toString());
|
bool result = saveRawList(newList, projectFilePath().toString());
|
||||||
refresh();
|
refresh();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user