From aa5e39d7bfe817bc8169ad6e60709d4a9e7522b8 Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 25 May 2022 14:18:26 +0200 Subject: [PATCH] ProjectExplorer: Remove Runnable::device Not used anymore. Change-Id: Ic22037d67df890b8fb46bf0dcb6b6513dddddb14 Reviewed-by: Jarek Kobus --- src/plugins/projectexplorer/runcontrol.cpp | 2 -- src/plugins/projectexplorer/runcontrol.h | 1 - 2 files changed, 3 deletions(-) diff --git a/src/plugins/projectexplorer/runcontrol.cpp b/src/plugins/projectexplorer/runcontrol.cpp index fba89d865be..251d20c2532 100644 --- a/src/plugins/projectexplorer/runcontrol.cpp +++ b/src/plugins/projectexplorer/runcontrol.cpp @@ -1510,7 +1510,6 @@ void SimpleTargetRunnerPrivate::forwardStarted() void SimpleTargetRunner::start() { d->m_runnable = runControl()->runnable(); - d->m_runnable.device = runControl()->device(); if (d->m_startModifier) d->m_startModifier(); @@ -1573,7 +1572,6 @@ void SimpleTargetRunner::setWorkingDirectory(const FilePath &workingDirectory) void SimpleTargetRunner::forceRunOnHost() { - d->m_runnable.device = {}; const FilePath executable = d->m_runnable.command.executable(); if (executable.needsDevice()) { QTC_CHECK(false); diff --git a/src/plugins/projectexplorer/runcontrol.h b/src/plugins/projectexplorer/runcontrol.h index ec7290a1947..3cf9ffcfd39 100644 --- a/src/plugins/projectexplorer/runcontrol.h +++ b/src/plugins/projectexplorer/runcontrol.h @@ -67,7 +67,6 @@ public: Utils::CommandLine command; Utils::FilePath workingDirectory; Utils::Environment environment; - IDeviceConstPtr device; // Override the kit's device. Keep unset by default. QVariantHash extraData; };