forked from qt-creator/qt-creator
ClangCodeModel: Remove unused variable
Change-Id: I06ab5d049db40c17e9b730b29934266445d5911f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user