From c5f7de0a99246d6c21c41613b5d2c1305cf9a985 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 17 Sep 2019 10:12:00 +0200 Subject: [PATCH] Python: Remove unused function Change-Id: If464646dfad66a1afabb9b5b9c6366a35597f370 Reviewed-by: David Schulz --- src/plugins/python/pythonproject.cpp | 10 ---------- src/plugins/python/pythonproject.h | 1 - 2 files changed, 11 deletions(-) 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);