forked from qt-creator/qt-creator
ProjectExplorer: Inline mapFromBuildDeviceToGlobalPath
... into its only users. Wasn't so useful as originally thought. Task-number: QTCREATORBUG-29168 Change-Id: Ic10bc29d829f4abfb7bfa6e6d0aecff82ba4538e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
#include "kitinformation.h"
|
||||
#include "target.h"
|
||||
|
||||
#include <projectexplorer/devicesupport/idevice.h>
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
@@ -108,13 +107,6 @@ bool ProjectConfiguration::fromMap(const QVariantMap &map)
|
||||
return true;
|
||||
}
|
||||
|
||||
FilePath ProjectConfiguration::mapFromBuildDeviceToGlobalPath(const FilePath &path) const
|
||||
{
|
||||
IDevice::ConstPtr dev = BuildDeviceKitAspect::device(kit());
|
||||
QTC_ASSERT(dev, return path);
|
||||
return dev->filePath(path.path());
|
||||
}
|
||||
|
||||
Id ProjectExplorer::idFromMap(const QVariantMap &map)
|
||||
{
|
||||
return Id::fromSetting(map.value(QLatin1String(CONFIGURATION_ID_KEY)));
|
||||
|
||||
Reference in New Issue
Block a user