CMakeEditor: Fix unused variable

Drop a call to currentProject(), as currentBuildSystem()
already implies currentProject() isn't nullptr.

Amends a998269d7e

Change-Id: Ibf902dc78af5c59c6475366f52d0b3489e989789
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Jarek Kobus
2023-09-21 10:23:42 +02:00
parent 84ba3c58c2
commit e753c4585c

View File

@@ -48,7 +48,6 @@ public:
CMakeEditor::CMakeEditor()
{
CMakeTool *tool = nullptr;
if (auto project = ProjectTree::currentProject())
if (auto bs = ProjectTree::currentBuildSystem())
tool = CMakeKitAspect::cmakeTool(bs->target()->kit());
if (!tool)