diff options
author | Karsten Heimrich <karsten.heimrich@qt.io> | 2023-03-01 14:32:59 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@qt.io> | 2023-03-15 13:21:30 +0000 |
commit | af5b575965ed3e9e73218a0b93b81a14c631a049 (patch) | |
tree | b92952c83d43ace3b14cb785f00dabf0ccbdd4ea | |
parent | 99b4e1bac6f242a08be6713b2bc70499fa5e8f5d (diff) |
Remove unused 'ref' parameter
Change-Id: Icadebbfbde6e2bfc8247d6db73c62f2e547369f1
Reviewed-by: Miguel Costa <miguel.costa@qt.io>
-rw-r--r-- | QtVsTools.Core/ProjectImporter.cs | 3 | ||||
-rw-r--r-- | QtVsTools.Core/QtProject.cs | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/QtVsTools.Core/ProjectImporter.cs b/QtVsTools.Core/ProjectImporter.cs index 38481047..ced864aa 100644 --- a/QtVsTools.Core/ProjectImporter.cs +++ b/QtVsTools.Core/ProjectImporter.cs @@ -132,8 +132,7 @@ namespace QtVsTools.Core QtVersionManager.The().SaveProjectQtVersion(pro, qtVersion, platformName); if (!qtPro.SelectSolutionPlatform(platformName) || !qtPro.HasPlatform(platformName)) { - var newProject = false; - qtPro.CreatePlatform("Win32", platformName, null, versionInfo, ref newProject); + qtPro.CreatePlatform("Win32", platformName, null, versionInfo); if (!qtPro.SelectSolutionPlatform(platformName)) Messages.Print($"Can't select the platform {platformName}."); } diff --git a/QtVsTools.Core/QtProject.cs b/QtVsTools.Core/QtProject.cs index a70a4a2d..8ac146d1 100644 --- a/QtVsTools.Core/QtProject.cs +++ b/QtVsTools.Core/QtProject.cs @@ -909,7 +909,7 @@ namespace QtVsTools.Core } public void CreatePlatform(string oldPlatform, string newPlatform, - VersionInformation viOld, VersionInformation viNew, ref bool newProjectCreated) + VersionInformation viOld, VersionInformation viNew) { ThreadHelper.ThrowIfNotOnUIThread(); @@ -917,7 +917,6 @@ namespace QtVsTools.Core var cfgMgr = envPro.ConfigurationManager; cfgMgr.AddPlatform(newPlatform, oldPlatform, true); vcPro.AddPlatform(newPlatform); - newProjectCreated = false; } catch { // That stupid ConfigurationManager can't handle platform names // containing dots (e.g. "Windows Mobile 5.0 Pocket PC SDK (ARMV4I)") @@ -928,7 +927,6 @@ namespace QtVsTools.Core AddPlatformToVCProj(projectFileName, oldPlatform, newPlatform); envPro = dte.Solution.AddFromFile(projectFileName, false); vcPro = (VCProject)envPro.Object; - newProjectCreated = true; } // update the platform settings |