Commit 0e2d153e authored by Tobias Hunger's avatar Tobias Hunger
Browse files

ProjectExplorer: Remove useless method

There are two methods to add existing files to a project. They both have
two arguments and only differ in the sequence of these two arguments.
The first calls the second. Decide on one syntax and remove the useless

Change-Id: Ida7139096fa16ac746c2be837e245776506201bc
Reviewed-by: default avatarOrgad Shaneh <>
parent 3810a145
......@@ -3141,7 +3141,8 @@ void ProjectExplorerPluginPrivate::handleAddExistingFiles()
tr("Add Existing Files"), directoryFor(ProjectTree::currentNode()));
if (fileNames.isEmpty())
ProjectExplorerPlugin::addExistingFiles(fileNames, folderNode);
ProjectExplorerPlugin::addExistingFiles(folderNode, fileNames);
void ProjectExplorerPluginPrivate::addExistingDirectory()
......@@ -3154,12 +3155,7 @@ void ProjectExplorerPluginPrivate::addExistingDirectory()
SelectableFilesDialogAddDirectory dialog(directoryFor(ProjectTree::currentNode()), QStringList(), ICore::mainWindow());
if (dialog.exec() == QDialog::Accepted)
ProjectExplorerPlugin::addExistingFiles(dialog.selectedFiles(), folderNode);
void ProjectExplorerPlugin::addExistingFiles(const QStringList &filePaths, FolderNode *folderNode)
addExistingFiles(folderNode, filePaths);
ProjectExplorerPlugin::addExistingFiles(folderNode, dialog.selectedFiles());
void ProjectExplorerPlugin::addExistingFiles(FolderNode *folderNode, const QStringList &filePaths)
......@@ -144,8 +144,7 @@ public:
static void runRunConfiguration(RunConfiguration *rc, Core::Id runMode,
const bool forceSkipDeploy = false);
static void addExistingFiles(FolderNode *projectNode, const QStringList &filePaths);
static void addExistingFiles(const QStringList &filePaths, FolderNode *folderNode);
static void addExistingFiles(FolderNode *folderNode, const QStringList &filePaths);
static void buildProject(Project *p);
/// Normally there's no need to call this function.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment