PythonEditor: Remove dead code

Change-Id: I55f7d513755857a5759ba8688e5cfeccbdaa379f
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2018-09-28 17:50:14 +03:00
committed by Orgad Shaneh
parent f2dd427f3d
commit b1c37910f1

View File

@@ -362,14 +362,6 @@ bool PythonProject::addFiles(const QStringList &filePaths)
foreach (const QString &filePath, filePaths)
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());
refresh();