Commit a4b8dabb authored by Daniel Teske's avatar Daniel Teske Committed by Christian Kandeler

AbstractRemoteLinuxDeployService: Remove unecessary checks

Change-Id: I769a2f514843a3825d3d5a2f8a61b9e9f5f9f537
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@digia.com>
parent 52be02d1
......@@ -130,13 +130,9 @@ void AbstractRemoteLinuxDeployService::saveDeploymentTimeStamp(const DeployableF
{
if (!d->target)
return;
const QtSupport::BaseQtVersion *const qtVersion
= QtSupport::QtKitInformation::qtVersion(d->kit);
QString systemRoot;
if (SysRootKitInformation::hasSysRoot(d->kit))
systemRoot = SysRootKitInformation::sysRoot(d->kit).toString();
if (!qtVersion || !qtVersion->isValid())
return;
d->lastDeployed.insert(DeployParameters(deployableFile,
deviceConfiguration()->sshParameters().host,
systemRoot),
......@@ -147,10 +143,6 @@ bool AbstractRemoteLinuxDeployService::hasChangedSinceLastDeployment(const Deplo
{
if (!target())
return true;
const QtSupport::BaseQtVersion *const qtVersion
= QtSupport::QtKitInformation::qtVersion(d->kit);
if (!qtVersion || !qtVersion->isValid())
return true;
QString systemRoot;
if (SysRootKitInformation::hasSysRoot(d->kit))
systemRoot = SysRootKitInformation::sysRoot(d->kit).toString();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment