From f1139b1d519d5cc42d8221e455aa101a859b4144 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 2 Feb 2016 14:48:30 +0100 Subject: [PATCH] QmlProfiler: Remove some dead code in RunControlFactory::create The check is covered by canRun(). Change-Id: Id2360a5d2cb2fd915e164a6b5a533f008fe670f1 Reviewed-by: Christian Stenger --- src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp b/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp index c19e23df02b..381a0dc5a44 100644 --- a/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp @@ -96,10 +96,6 @@ RunControl *QmlProfilerRunControlFactory::create(RunConfiguration *runConfigurat connection.analyzerPort = LocalQmlProfilerRunner::findFreePort(connection.analyzerHost); } - // only desktop device is supported - const IDevice::ConstPtr device = DeviceKitInformation::device(kit); - QTC_ASSERT(device->type() == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE, return 0); - auto runControl = qobject_cast (AnalyzerManager::createRunControl(runConfiguration, mode)); QTC_ASSERT(runControl, return 0);