ClangCodeModel: Remove unused variable

Change-Id: I06ab5d049db40c17e9b730b29934266445d5911f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Marcus Tillmanns
2022-12-16 12:27:18 +01:00
parent 676a4c1ee3
commit e603116abb

View File

@@ -149,11 +149,9 @@ std::optional<Utils::FilePath> clangdExecutableFromBuildDevice(Project *project)
return std::nullopt; return std::nullopt;
if (ProjectExplorer::Target *target = project->activeTarget()) { if (ProjectExplorer::Target *target = project->activeTarget()) {
if (ProjectExplorer::BuildConfiguration *bc = target->activeBuildConfiguration()) { if (const ProjectExplorer::IDeviceConstPtr buildDevice = BuildDeviceKitAspect::device(
if (const ProjectExplorer::IDeviceConstPtr buildDevice = BuildDeviceKitAspect::device( target->kit())) {
target->kit())) { return buildDevice->clangdExecutable();
return buildDevice->clangdExecutable();
}
} }
} }