diff --git a/src/plugins/python/pythonproject.cpp b/src/plugins/python/pythonproject.cpp index 136ada7bb8f..c38394a0bef 100644 --- a/src/plugins/python/pythonproject.cpp +++ b/src/plugins/python/pythonproject.cpp @@ -289,16 +289,6 @@ bool PythonProject::removeFiles(const QStringList &filePaths) return saveRawFileList(newList); } -bool PythonProject::setFiles(const QStringList &filePaths) -{ - QStringList newList; - const QDir baseDir(projectDirectory().toString()); - for (const QString &filePath : filePaths) - newList.append(baseDir.relativeFilePath(filePath)); - - return saveRawFileList(newList); -} - bool PythonProject::renameFile(const QString &filePath, const QString &newFilePath) { QStringList newList = m_rawFileList; diff --git a/src/plugins/python/pythonproject.h b/src/plugins/python/pythonproject.h index 9f53cb6a7f7..6f2d4b6d736 100644 --- a/src/plugins/python/pythonproject.h +++ b/src/plugins/python/pythonproject.h @@ -42,7 +42,6 @@ public: bool addFiles(const QStringList &filePaths); bool removeFiles(const QStringList &filePaths); - bool setFiles(const QStringList &filePaths); bool renameFile(const QString &filePath, const QString &newFilePath); void refresh(ProjectExplorer::Target *target = nullptr);