forked from qt-creator/qt-creator
Utils: Remove deviceHooks.mapToGlobalPath
Unused, and conceptually so. Change-Id: Ia468a22e56829f7b23629df6aa28b89ea3c3eab9 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -78,7 +78,6 @@ public:
|
||||
std::function<bool(const FilePath &, const FilePath &)> renameFile;
|
||||
std::function<FilePath(const FilePath &, const QList<FilePath> &)> searchInPath;
|
||||
std::function<FilePath(const FilePath &)> symLinkTarget;
|
||||
std::function<FilePath(const FilePath &)> mapToGlobalPath;
|
||||
std::function<QString(const FilePath &)> mapToDevicePath;
|
||||
std::function<void(const FilePath &,
|
||||
const std::function<bool(const FilePath &)> &, // Abort on 'false' return.
|
||||
|
@@ -520,12 +520,6 @@ DeviceManager::DeviceManager(bool isInstance) : d(std::make_unique<DeviceManager
|
||||
return device->symLinkTarget(filePath);
|
||||
};
|
||||
|
||||
deviceHooks.mapToGlobalPath = [](const FilePath &filePath) {
|
||||
auto device = DeviceManager::deviceForPath(filePath);
|
||||
QTC_ASSERT(device, return FilePath{});
|
||||
return device->mapToGlobalPath(filePath);
|
||||
};
|
||||
|
||||
deviceHooks.mapToDevicePath = [](const FilePath &filePath) {
|
||||
auto device = DeviceManager::deviceForPath(filePath);
|
||||
QTC_ASSERT(device, return QString{});
|
||||
|
Reference in New Issue
Block a user