From b1c37910f141825f4ffeb948a96a43a196c71c6f Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Fri, 28 Sep 2018 17:50:14 +0300 Subject: PythonEditor: Remove dead code Change-Id: I55f7d513755857a5759ba8688e5cfeccbdaa379f Reviewed-by: hjk --- src/plugins/pythoneditor/pythoneditorplugin.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/plugins/pythoneditor/pythoneditorplugin.cpp') diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp index f728f6bbc6..fe0c0b0430 100644 --- a/src/plugins/pythoneditor/pythoneditorplugin.cpp +++ b/src/plugins/pythoneditor/pythoneditorplugin.cpp @@ -362,14 +362,6 @@ bool PythonProject::addFiles(const QStringList &filePaths) foreach (const QString &filePath, filePaths) newList.append(baseDir.relativeFilePath(filePath)); - QSet toAdd; - - foreach (const QString &filePath, filePaths) { - QString directory = QFileInfo(filePath).absolutePath(); - if (!toAdd.contains(directory)) - toAdd << directory; - } - bool result = saveRawList(newList, projectFilePath().toString()); refresh(); -- cgit v1.2.1