From d458f9f5e6c3cb062d40bcffb14dcdc2a6b6e483 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 10 May 2022 12:34:55 +0200 Subject: [PATCH] Utils: Remove deviceHooks.mapToGlobalPath Unused, and conceptually so. Change-Id: Ia468a22e56829f7b23629df6aa28b89ea3c3eab9 Reviewed-by: Jarek Kobus --- src/libs/utils/fileutils.h | 1 - src/plugins/projectexplorer/devicesupport/devicemanager.cpp | 6 ------ 2 files changed, 7 deletions(-) diff --git a/src/libs/utils/fileutils.h b/src/libs/utils/fileutils.h index f76b621c484..7b19997c548 100644 --- a/src/libs/utils/fileutils.h +++ b/src/libs/utils/fileutils.h @@ -78,7 +78,6 @@ public: std::function renameFile; std::function &)> searchInPath; std::function symLinkTarget; - std::function mapToGlobalPath; std::function mapToDevicePath; std::function &, // Abort on 'false' return. diff --git a/src/plugins/projectexplorer/devicesupport/devicemanager.cpp b/src/plugins/projectexplorer/devicesupport/devicemanager.cpp index 976c269568e..e97bd096969 100644 --- a/src/plugins/projectexplorer/devicesupport/devicemanager.cpp +++ b/src/plugins/projectexplorer/devicesupport/devicemanager.cpp @@ -520,12 +520,6 @@ DeviceManager::DeviceManager(bool isInstance) : d(std::make_uniquesymLinkTarget(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{});