summaryrefslogtreecommitdiff
path: root/src/plugins/pythoneditor/pythoneditorplugin.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2018-09-28 17:50:14 +0300
committerOrgad Shaneh <orgads@gmail.com>2018-10-01 16:42:43 +0000
commitb1c37910f141825f4ffeb948a96a43a196c71c6f (patch)
tree3fb48c264f800943b87c454d24949acc0e4156c2 /src/plugins/pythoneditor/pythoneditorplugin.cpp
parentf2dd427f3db343dc5d29baabfaac52f8537faba8 (diff)
downloadqt-creator-b1c37910f141825f4ffeb948a96a43a196c71c6f.tar.gz
PythonEditor: Remove dead code
Change-Id: I55f7d513755857a5759ba8688e5cfeccbdaa379f Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditorplugin.cpp')
-rw-r--r--src/plugins/pythoneditor/pythoneditorplugin.cpp8
1 files changed, 0 insertions, 8 deletions
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<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();