Utils: Remove deviceHooks.mapToGlobalPath

Unused, and conceptually so.

Change-Id: Ia468a22e56829f7b23629df6aa28b89ea3c3eab9
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2022-05-10 12:34:55 +02:00
parent 08359cafde
commit d458f9f5e6
2 changed files with 0 additions and 7 deletions

View File

@@ -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.

View File

@@ -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{});